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 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: PHP Problem ;[

  1. #11
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Lmao thats what im thinking :p

  2. #12
    Join Date
    Apr 2006
    Location
    England
    Posts
    71
    Tokens
    0

    Default

    Nothing looks wrong with the code, apart from the continous mysql_query
    PHP Code:
    <?php include('../Connections/MySQL.php'); ?>
    That is not the problem. That is just saying include a certain file.

    Edit: I have noticed that you haven't defined these variables: $mysql, $database_mysql

  3. #13
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Perhaps they're in the MySQL.php?
    Anyway, use require rather than include.
    kinda quit.

  4. #14
    Join Date
    Apr 2006
    Location
    England
    Posts
    71
    Tokens
    0

    Default

    I was thinking that. Then again, it might not be.

    CHECK YOUR MYSQL.PHP FILLLLLLEELELELLELE!

  5. #15
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    it is quite hard to say what the error is with without knowing the error message "/

  6. #16
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Right ok The ../Connection/MySQL.php include and file is fine. There is NO, I repeat NO error message, it just dosent create the tables.

    Basicly heres my folder/file tree:

    -Connections
    --MySQL.php
    -Install
    --install2.php (This is the file being used to run the SQL)

    Edit: Also do you really think I am that dumb to use file paths on my computer not file paths on the target server ''/

    Also heres my MySQL.php file:

    PHP Code:
    <?php
    $hostname_mysql 
    "localhost";
    $database_mysql "radio2";
    $username_mysql "root";
    $password_mysql "";
    $mysql mysql_pconnect($hostname_mysql$username_mysql$password_mysql) or trigger_error(mysql_error(),E_USER_ERROR); 
    ?>
    The username, passwords, and db are ok.
    Last edited by Tomm; 24-04-2006 at 03:02 PM.

  7. #17
    Join Date
    Feb 2006
    Location
    Coventry
    Posts
    2,096
    Tokens
    0

    Latest Awards:

    Default

    I wouldnt use .../ id use / thats just moi and im learning

  8. #18
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Sygon.
    I wouldnt use .../ id use / thats just moi and im learning
    No because the Connections folder it not in the install folder is it now?

    Anyway I think I fixed the problem. I used a diffrent type of table on my local (Testing) MySQL server than on my deployment server.

  9. #19
    Join Date
    Apr 2006
    Location
    England
    Posts
    71
    Tokens
    0

    Default

    Org, did you add the correct prefix to the tables?

    eg: I own habbotoday.net, and it would be:

    habtoday_admin (for username)
    did you remember to add the prefix (yoursite_)?

  10. #20
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Organised
    No because the Connections folder it not in the install folder is it now?

    Anyway I think I fixed the problem. I used a diffrent type of table on my local (Testing) MySQL server than on my deployment server.
    Yay my orignal thought was correctomondo then

Page 2 of 3 FirstFirst 123 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
  •