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 11
  1. #1
    Join Date
    Nov 2006
    Posts
    19
    Tokens
    0

    Exclamation User System Help Required

    i have a user system on my site excet i cant login on it i have used techtuts guides to making a user system. it dont work when i try to login it comes up with
    <?
    ob_start(); // allows you to use cookies
    $conn = mysql_connect("sql06.freemysql.net ","","");
    mysql_select_db(adam) or die(mysql_error());
    //fill in the above lines where there are capital letters.
    $logged = MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]'");
    $logged = mysql_fetch_array($logged);
    //the above lines get the user's information from the database.
    alert ('$logged[alert]') "); //send it mysql_query("UPDATE `users` SET `alert` = 'NONE' WHERE `username` = '$logged[username]'"); //then delete alert } }$free = '80';> ?>
    Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    can anyone help.

    the person that does manage to help get my user system working will get admin rites FREE

    Edited by L&#181;ke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 04-04-2007 at 04:54 PM.

  2. #2
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    Thanks for your sql info.

  3. #3
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    I suggest not using the TechTuts user system as it is very unsafe and is prone to hackings due to it using cookies as opposed to sessions.

    But anyway, have you set up your MySQL database?
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  4. #4
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    I just looked on his account and he has.

  5. #5
    Topps Guest

    Default

    Quote Originally Posted by Dolby View Post
    I just looked on his account and he has.
    LOL, your nice aren't you.

  6. #6
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    Heh, thought I might as well :p

  7. #7
    Topps Guest

    Default

    Quote Originally Posted by Dolby View Post
    Heh, thought I might as well :p
    Would you ever muck up his account though?

  8. #8
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    Nah, I wouldn't.

    Really, I wouldn't!

    HONESTLY! SO STOP HIGHLIGHTING!

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

    Latest Awards:

    Default

    Quote Originally Posted by Dolby View Post
    Thanks for your sql info.
    Quote Originally Posted by Dolby View Post
    I just looked on his account and he has.
    The username and password fields are blank?

    Quote Originally Posted by Xeoro View Post
    cookies as opposed to sessions.
    If it is vulnerable, then that's a result of using cookies incorrectly.
    kinda quit.

  10. #10
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    They weren't before.

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
  •