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:
mr greywolf
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.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%'
mr greywolf
In Section
Seekers of Perl Wisdom