Hi,
i have a search box and the search box works fine with this code.
$sql = "SELECT * FROM table
WHERE studentid like '%$searchbox%'
OR fname like '%$searchbox%'
OR lname like '%$searchbox%' ";
Now i want to add 2 more drop down box to filter the column data.
$sql = "SELECT * FROM table
WHERE studentid like '%$searchbox%'
OR fname like '%$searchbox%'
OR lname like '%$searchbox%'
AND fname = '$selectbox2'
AND lname = '$selectbox3' ";
But I 'm having problem with the above code.
Your help is greatly appreciated, thanks.