View Single Post
Old 01-30-2013, 12:17 PM   PM User | #1
zubat
New Coder

 
Join Date: Dec 2011
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
zubat is an unknown quantity at this point
Check if value exist in mysql

PHP Code:
$sql mysql_query("SELECT email FROM users WHERE email ='$email'");
                                    
if(
mysql_num_rows($sql) != 0)
{
echo 
'<font color="ff0000"><li> Email exist!</font>';

So my problem is, that even if i write an email that i know exist in the database it let me through. I got the config.php include a bit up in the code so the database connection is no problem.

//Zubat
zubat is offline   Reply With Quote