Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    853
    Tokens
    0

    Default Need Some Basic Help

    <?
    $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!
    Last edited by VirtualG; 26-03-2010 at 08:53 AM.
    Cheap Layout Coding
    PM For Free Quote

  2. #2
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Quote Originally Posted by VirtualG View Post
    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![/FONT][/COLOR]
    <?
    $host = "localhost";
    $dbuser = "YOUR DATABASE USERNAME";
    $dbpwd = "YOUR DATABASE PASSWORD";
    $db = "YOUR DATABASE NAME";
    $connect = mysql_pconnect($host, $dbuser, $dbpwd);
    if(!$connect) {
    echo("Could not connect to database...");
    } else {
    $select = mysql_select_db($db);
    }
    ?>

    Leave localhost as it is, just put your database username, password and name in. Make sure you have given the user full permissions in the database and also make sure you're putting the right database username, name and password in. For example, my username could be test for my cpanel and my database username could be user so the database username would be test_user. Also, if my database was named data, my database name would be test_data.

    Kind Regards,
    Vince.
    Last edited by ThisNameWillDo!; 26-03-2010 at 10:41 AM.
    Free Online Games And Videos:
    http://www.vincesgames.com



  3. #3
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    853
    Tokens
    0

    Default

    Thanks, +rep A lot more helpful than clubhabbo!
    Cheap Layout Coding
    PM For Free Quote

  4. #4
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    http://www.tizag.com/mysqlTutorial/ for more tutorials about mysql btw

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •