Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Wed Nov 17, 2004 7:56 pm Reply with quote

I am trying to set up a search box that allows me to search records according to criteria.
I want to set the criteria with a radio button that will allow me to search that row only then when the criteria is met is shows all the data associated with that record.

I dont know if this could be done but have searched the web and found a couple of things but nothing that works.

Thanks
Rick
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Nov 18, 2004 1:36 pm Reply with quote

Well, you would set the value of the radio button to what your 'WHERE' clause would be. Let's say the radio buttons are named 'criteria'. Then the value of button 1 might be 'scores > '10' . Then, as you are assembling your SQL clause, you might have this:

$sql = "Select * FROM some_table where $criteria";

Make sense?
 
View user's profile Send private message
fury







PostPosted: Thu Nov 18, 2004 3:36 pm Reply with quote

Perfect Sense lets see if I can put it together tonight and will let you know

Thanks Raven


Thanks
Rick
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©