Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!get_magic_quotes_gpc()) {
- $_POST['email'] =addslashes ($_POST['email']);
- }
- $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die(mysql_error());
- //give error if user doesnt exist
- if ($check2==0) {
- die('Uuser not found<a href="signup.html">Click Here to Register</a>');
- }
- while ($info=mysql_fetch_array ($check))
- {
- $_POST['pass'] = stripslashes($_POST['pass']);
- $info['password'] = stripslashes($info['password']);
- $_POST['pass'] = md5($_POST['pass']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement