I don't see anything wrong with your query.
I can only assume that your problem is with $b.
If $b is empty then it would explain why it prints all the records as the % relates to anything.
Can you give an example of what $b is? and were register_globals on or off with your previous host, and this one.
|