Okay, this is a beginners question.
I have a search features that lets people search a database of names by entering the first few characters of the name. This is my "starts with" search. My script looks like this...
"select blah blah blah
where
table.name like '$name%'
This works, but now I want to do a "name contains" search. I tried putting the "%" symbol before and after the field name, but it doesn't work. This is what I tried...
"select blah blah blah
where
table.name like '%$name%'
What am I doing wrong?
Thanks in advance.