[req] username availbable

Posted on Saturday 12th July 2008 at 08:16 PM
UrbanTwitch
UrbanTwitch's Avatar
Can someone show me when at register for php user system it says if username is or is not available? Thanks.
Posted on Wednesday 16th July 2008 at 11:53 AM
ilyas-shezad
ilyas-shezad's Avatar
You mean this part?
PHP Code
  1. $password = sha1(md5(md5(sha1(md5(sha1(sha1(md5($password))))))));
  2. $cname = mysql_query("SELECT `username` FROM `members` WHERE `username` = '$username'");
  3. $cname= mysql_num_rows($cname);
  4. //checks to see if the username or email allready exist
  5. if($cname>=1) {
  6. echo "The username is already in use";
  7. }else{
PHP-MYSQL-JAVASCRIPT-ACTIONSCRIPT-CSS-HTML
Making tutorials for flash, php and javascript
Posted on Wednesday 16th July 2008 at 02:31 PM
UrbanTwitch
UrbanTwitch's Avatar
Yeah but I got it. This thread can be locked.
Login or register to respond to this forum topic.