RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

searching multiple fields

Join Date: Jun 2004
Posts: 11
Reputation: charter is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
charter charter is offline Offline
Newbie Poster

Re: searching multiple fields

  #3  
Jun 20th, 2004
Originally Posted by Ragnarok
The SQL would look something like this:

"SELECT * FROM table WHERE wkno LIKE '%".$_POST['searchterm']."%' OR year LIKE '%".$_POST['searchterm']."%'"

Sorry but this isn't what I am looking for.

I want a page with 2 search boxes (the code I gave was for 1 box).

The data base includes 2 fields 1 for wk no and 1 for year.

I want to search in 1 box for the wk no and to search in the other box for the year.

Then for the result to match the wk no. and the year.

This means having 2 search box forms on one page but one button to search for the criteria
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:16 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC