I am starting a project where I have to search a SQL table based on multiple fields filled out in a form.
I was wondering if someone can point me to code that has already been worked out for this, before I start re-inventing the wheel.
My $_request will look something like this:
title = Poly
patno
issdate
appno
fildate
pubno
pubdate = 2003*
apptype = 4
status = 0
stadate
where the values may be blank, dates, text, even text including wildcards.
So I need to loop through the Request variables and based on whether or not they contained values and or wildcards, I need to contruct the WHERE clause of the sql query.
Thank you in advance for any help you can give.
Terry