Chrisj Posted June 5, 2007 Share Posted June 5, 2007 I have a web site host who provides MYSQL with the hosting package. And I have a script entitled: Member Mgmt Script, to manage users/members who register with my web site. I can set up most features of this script, except I know very little about setting up databases. The Members Mgmt script install instructions simply say: "Set database connection details in db_config.php". Can someone tell me how to "set database connection details in db_config.php"? Here is the db_config.php file, thanks: <?php /** * file: db_config.php * * description: init db connection */ $db_name = "database name"; // database name $db_user_name = "database user name"; // database user name $db_user_password = "database password"; // datanase user password $db_type = "mysql"; // note: for use mysqli lib set db_type = mysqli $host = "localhost"; ?> Link to comment https://forums.phpfreaks.com/topic/54320-help-with-setting-database-connection-details/ Share on other sites More sharing options...
dlebowski Posted June 5, 2007 Share Posted June 5, 2007 You are going to first have to create your database and your user name and password with your hosting provider. Your hosting provider may be able to help you with that. Your end result will look something like this: <?php /** * file: db_config.php * * description: init db connection */ $db_name = "membermanagement"; // database name $db_user_name = "ryan3456"; // database user name $db_user_password = "7?@rtY"; // datanase user password $db_type = "mysql"; // note: for use mysqli lib set db_type = mysqli $host = "localhost"; ?> Link to comment https://forums.phpfreaks.com/topic/54320-help-with-setting-database-connection-details/#findComment-268734 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.