hi,
i am trying to query using multiple ORs...everything works fine as long as i have only 1 Or but if i put one more Or, then it returns all the records in the table...
$result=mysql_query("select * from register where smartCard = '$smartCard' or lastName like '%$lastName%' or firstName like '%$firstName%' " );
if i have the query like this...
whatever value i enter for the variables..
all the records are returned...
any ideas??
cheers
vinaya