Potentially a dumb question...

    Date: 12/03/06 (PHP Community)    Keywords: database, sql

    I feel like I should know how to do this but I am stumped and perhaps it's because I'm sick but anyway...

    I have a form that will be used to search a database. The form has a total of 12 fields which can be filled out to perform the search.

    My question is: Is there an easy way to include or exclude the fields in SQL query when accessing the database? That is, I only want to include the fields where something has been entered in the query string and am not sure how I would go about doing that.

    Any help is greatly appreciated. Thank you in advance!

    Source: http://community.livejournal.com/php/516175.html

« ADOdb Issue || CSV to XML »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home