I have the following line...
But keep getting the following error...PHP Code:$results = mysql_query("SELECT * FROM `table` WHERE `FirstName` LIKE '%$firstName%' AND `LastName` LIKE '%$lastName%` AND `Email` LIKE '%$email%' AND `State`='$state' AND `mng`='$mng' AND `Member`='$status'") or die ('Error: '.mysql_error ());
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' AND `State`='sa' AND `mng`='1' AND `Member`='A'' at line 1



Reply With Quote

Bookmarks