| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error in php/MySQL query?
Hello,
I have this query to find out whether the email address the user typed in, already exists in the database. if($res=mysql_query("SELECT address FROM email WHERE address ='{$new_emailaddress}'") <>FALSE) { echo "This email address already exists . Enter a new one.";} the problem is, the query always returns true. But I want to compare it to the email address the user enters. Can anyone help me? |
|
#2
|
|||
|
|||
|
I am assuming user provided email is in $new_emailaddress.
PHP Code:
|
![]() |
| Viewing: Tutorialized Forums > Databases > MySQL > Error in php/MySQL query? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|