Forum Moderators: open
When I add LIKE 'A%' in the query it works, but when I first define the variable $letter="A" and then use LIKE '$letter%' it returns all values, not only those starting with "A". How can I use a variable with LIKE?
UPDATE:
Problem solved in the meantime. Stupid mistake: I put "$letter" in query string instead of "letter".