http://qs321.pair.com?node_id=195827


in reply to MYSQL while function

You might want to try bracketing your where clauses to ensure you are testing for the conditions you really want. It never hurts to be explicit with your logic. For example:
WHERE category = '$id' AND (description LIKE '%$search%' OR itemid LIK +E '%$search%' OR longdescription LIKE '%$search%') is different from WHERE (category = '$id' AND description LIKE '%$search%') OR itemid LI +KE '%$search%' OR longdescription LIKE '%$search%'
That being said, you really should try to implement some of the suggestions from other monks if you are going to post more than 1 question on essentially the same problem.

mr greywolf