MySQL Forums
Forum List  »  PHP

Re: Query with PHP variables not returning correct result.
Posted by: Richard Dunne
Date: March 20, 2015 04:18PM

The following queries returned no records found:
"SELECT Email FROM members_security where Email = '$Email'";
"SELECT Email FROM members_security where Email like '%".$Email."%' and Active='0'";

Whereas this query returned 1 record
SELECT Email FROM members_security;

Does anyone know what could/might be causing this?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.