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 5 of 6 FirstFirst 123456 LastLast
Results 41 to 50 of 53
  1. #41
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Colin-Roberts View Post
    thought of that, was on my register page
    Impossible, as it is connecting to localhost not the nivade IP for the db.

  2. #42
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    http://zetolic.com/social/ try and register, register apparently works but the login doesn't and theres nothing in phpmyadmin
    Last edited by Colin-Roberts; 13-12-2008 at 05:08 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  3. #43
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Colin-Roberts View Post
    http://zetolic.com/social/ try and register, register apparently works but the login doesn't and theres nothing in phpmyadmin
    Hmm, strange.

  4. #44

    Default

    I've done a core, similar to yours, that has the line:

    PHP Code:
    $check_ban_number mysql_fetch_object$check_ban ); 
    But I get this error;

    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in \\nas-001\winspace002\10-didehvar.com\www\fivid\includes\core.php on line 23
    Any ideas, is it worth contacting host or is it a bad php mistake?

    Full File:
    Last edited by Jam-ez; 13-12-2008 at 11:15 PM.

  5. #45
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jam-ez View Post
    I've done a core, similar to yours, that has the line:

    PHP Code:
    $check_ban_number mysql_fetch_object$check_ban ); 
    But I get this error;



    Any ideas, is it worth contacting host or is it a bad php mistake?

    Full File:
    Ensure that you have fields named "username", "ban_reason", "banned"

  6. #46

    Default

    Quote Originally Posted by Calon View Post
    Ensure that you have fields named "username", "ban_reason", "banned"
    I have, but perhaps it would be because there's no accounts at the moment.

    Oh, and it's actually saying I'm banned as well (after that error).
    Last edited by Jam-ez; 14-12-2008 at 09:40 AM.

  7. #47
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Thanks, a nice bit of code to play around with
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  8. #48

    Default

    Quote Originally Posted by Calon View Post
    Ensure that you have fields named "username", "ban_reason", "banned"
    Just added myself to the table, and still doesn't work. I do have all them fields...

    Anyone have any ideas?

    Edit: Found problem, I was connecting to table instead of database.
    (DUH)

    Edit2: Now it's saying I'm banned, when I'm not even logged in and the field isn't set to true..
    Last edited by Jam-ez; 14-12-2008 at 11:26 AM.

  9. #49

    Default

    Can't edit:

    Is it because its doing this:
    PHP Code:
    $username $_SESSION['username'];

    $check_ban mysql_query"SELECT * FROM `user_data` WHERE `username` = '$username'"); 
    But the session username hasn't been set?

  10. #50
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jam-ez View Post
    Can't edit:

    Is it because its doing this:
    PHP Code:
    $username $_SESSION['username'];

    $check_ban mysql_query"SELECT * FROM `user_data` WHERE `username` = '$username'"); 
    But the session username hasn't been set?
    If I remember correctly, I removed the ban code.

    And the session hasn't been set, it's so $username can be called instead of $_SESSION[ 'username' ]

Page 5 of 6 FirstFirst 123456 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
  •