Hi People
This database stuff is new to me and it's driving me nuts! I hope someone can help me with this problem? I'm posting to this forum because looking at the posts, it looks like there are some knowledgeable people around here.
Hello by the way - I'm stressed and forgetting my manners!
I have a table called tbl_dir_details. Within that table I have 3 fields (well actually many more but they don't come into this equation). Those 3 fields are called Category, Category2 and Category3. I want to retrieve all records where ? is in any of the fields (? being a value passed via a URL parameter).
I have tried the following without luck:
SELECT *
FROM tbl_dir_details
WHERE Category = ? OR Category2 = ? OR Category3 = ?
I get the following error:
No value given for one or more required parameters
Now this works if I lookup one field at a time. It's like the value of ? is not being passed from one query to the next in the WHERE statement. Your going to cringe when I tell you that I have currently created 3 record sets to fudge this at the moment.
I hope i'm explaining that correctly?? So, does anyone here know what I’m going on about and secondly, know the correct syntax that I need to use?
Many thanks
Lee