[FIXED] 1 search bar that searches 2 db fields
Posted: Tue Mar 31, 2009 1:48 pm
hello,
i currently have a search bar that will allow users to search any words in one field from my db (product_name). without adding another text field on the site, is there a way that my current search bar can search for words in two db fields(product_name and post_title)?
i know how to do this if i make a separate text field for each in the users window, but it would be a lot more convenient to have one search box.
any suggestions?
thank you!
i currently have a search bar that will allow users to search any words in one field from my db (product_name). without adding another text field on the site, is there a way that my current search bar can search for words in two db fields(product_name and post_title)?
i know how to do this if i make a separate text field for each in the users window, but it would be a lot more convenient to have one search box.
any suggestions?
thank you!
Code: Select all
<label for="product_name">Product(s) and/or Store Name:</label>
<input name="product_name" type="text" id="product_name" size="40" />