View Single Post
  #2 (permalink)  
Old 03-03-09, 12:19 PM
jon123 jon123 is offline
Senior Member
 
Join Date: Jan 2007
Location: Dorset
Posts: 1,117
Default

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.
Reply With Quote