VirtualG
26-03-2010, 08:51 AM
<?
$host = "localhost";
$dbuser = "db_username";
$dbpwd = "db_password";
$db = "db_name";
$connect = mysql_pconnect($host, $dbuser, $dbpwd);
if(!$connect) {
echo("Could not connect to database...");
} else {
$select = mysql_select_db($db);
}
?>
Yeh, thats the config.php file from HabboSoft usersystem, can anyone tell me how to config it and what goes where? I've made a database, put a username and pass with it, I've obv entered all that into my file. (it's not working though because...) But what am I supposed to do with the localhost, leave it? Enter something else? If I enter something else, what? How do I find it? etc... Thanks and +rep to any whole helps!
$host = "localhost";
$dbuser = "db_username";
$dbpwd = "db_password";
$db = "db_name";
$connect = mysql_pconnect($host, $dbuser, $dbpwd);
if(!$connect) {
echo("Could not connect to database...");
} else {
$select = mysql_select_db($db);
}
?>
Yeh, thats the config.php file from HabboSoft usersystem, can anyone tell me how to config it and what goes where? I've made a database, put a username and pass with it, I've obv entered all that into my file. (it's not working though because...) But what am I supposed to do with the localhost, leave it? Enter something else? If I enter something else, what? How do I find it? etc... Thanks and +rep to any whole helps!