Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorials: Register & Login: User registration (Part 6)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
41,677
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 24, 2009

Part of the 'Register & Login' Project from phpacademy. This tutorials walks you through checking if a username has already been registers and returns an error if so.

Official website
http://phpacademy.org

Support Forum
http://phpacademy.org/forum

Follow us on Twitter!
http://twitter.com/phpacademy

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (phpacademy)

  • really good tutorials, I appreciate the effort! Keep up the good work!

  • @beef267 Thank you! Really nice to hear.

  • Hi! thanks for your tutorial. It's realy helping me a lot. You said in your videos that if we have any questions we can ask for help.... so... there is something realy weird that I can't figure it out, nor fix it. I have tried your example from your tutorial and everything worked fine until the sessions. When I try to enter the members page... it keeps saying "You're not logged in" Why is saying that?!... Can u help me?! Thanks in advance... see ya

  • @mariusmihaila35 These are older tutorials and therefore I used to have a LOT more time. If you need any help you're welcome to use the phpacademy forum. Link on my channel homepage.

see all

All Comments (116)

Sign In or Sign Up now to post a comment!
  • skillz

  • Found the error. Now I just need to find a way to implement it in our site, which can be problematic because I'm using the EOD function to display the HTML that I want. Any suggestions for how to display this stuff without using an EOD function?

  • I get this error message:

    Warning: Wrong parameter count for mysql() in /home/onefores/public_html/reg­ister.php on line 20

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/onefores/public_html/reg­ister.php on line 21

    If I don't have the username check the code works. However, it's when I do the username check that issues arise.

  • thanks alex so much ... really great tutorial ... it helped me a lot .. you are a very good teacher

  • @loyaus SELECT * FROM users WHERE username='$username'

  • try this:

    mysql_query("SELECT username FROM users WHERE username='$username' ");

  • IT WORKS!!!! thank you you're awesome

  • I have problem with this code

    Can anyone help me to solve this?

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given

    $namecheck = mysql_query("SELECT username FROM users WHERE username='$username'"); $count = mysql_num_rows($namecheck); if($count!=0) { die ("Username already taken!"); }

  • Need help with all the tutorial please...

  • @XxDJcommanderxX thanx man now it works

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more