im trying to search a table based on fname and sname fields
the above gives me a mysql error. but the following works when I search just the fname fieldPHP Code:$sql = "SELECT * FROM members WHERE fname, sname LIKE '%$search%'";
anyone know the SQL syntax for searching more than one field?PHP Code:$sql = "SELECT * FROM members WHERE fname LIKE '%$search%'";
![]()


Reply With Quote
ive tried playing around with it
