I have a script that allows you to search for items, they can be searched by one or more different fields. I made it so that if a field is blank it set to *, however it doens't work.
SELECT * FROM items WHERE itemname = 'sword' AND itemtype = '*' AND itemcost = '*'
that's the query when they only searched for sword, but the script crashes. Any ideas on what's up? Thanks in advanced.
Edit: Didn't see a PHP and SQL forum, sorry. If a mod or something can move this, that'd be great. Thanks