Advertisement
enochmh2

1st username check

Dec 19th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. /check if username is in use
  2. if (!get_magic_quotes_gpc()) {
  3.  
  4. $_POST['username'] = addslashes($_POST['username']); }
  5.  
  6. $usercheck= $_POST['username'];
  7. $check =mysql_query("SELECT username FROM users WHERE username= '$usercheck'")
  8.  
  9. or die("Username in use");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement