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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Php problem

  1. #1
    Join Date
    Jul 2007
    Location
    South Wales
    Posts
    1,386
    Tokens
    0

    Latest Awards:

    Default Php problem

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/icehabbo/public_html/index.php on line 11

    Code:
    <?
    $host = "localhost";
    $dbuser = "icehabbo_Usersystem";
    $dbpwd = "*removed*";
    $db = "icehabbo_Usersystem";
    $connect = mysql_pconnect($host, $dbuser, $dbpwd);
    if(!$connect) {
    echo("Could not connect to database...");
    } else {
    $select = mysql_select_db($db);
    }
    ?>
    Last edited by Rafiki; 27-03-2008 at 08:59 PM.
    Im a runescape player.



  2. #2
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Make sure you added your user to the database in mySQL databases

  3. #3
    Join Date
    Jul 2007
    Location
    South Wales
    Posts
    1,386
    Tokens
    0

    Latest Awards:

    Default

    I have :S
    Im a runescape player.



  4. #4
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Did you make sure you created a database?
    EDIT: Your also forgetting to add <?PHP

    <?php
    $dbhost = 'localhost';
    $dbuser = 'fbdfgfbdn';
    $dbpass = 'ngfngfnf';
    $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error try again lulz);

    $dbname = 'nameofdb here';
    mysql_select_db($dbname);
    ?>

    Try that
    You were also using wrong codes
    Last edited by Bojangles; 27-03-2008 at 09:13 PM.

  5. #5
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Why don't you show use line 11?

    Just showing us your configuration file isn't going to help. From what I can see there is not a mysql_fetch_array on that page

  6. #6
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    O.o silly error

  7. #7
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    He's got no chance of installing it correctly LOL

  8. #8
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Show us line 11

  9. #9
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    By that he means

    Press down 10 time's, then copy and paste it here.

  10. #10
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    And in the index.php file

Page 1 of 2 12 LastLast

Posting Permissions

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