Re: Filters

From: Date: Sat, 25 Nov 2000 06:47:41 +0000
Subject: Re: Filters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27101@lists.php.net to get a copy of this message
Use lots of if's and solve this problem. If no option is selected either the var representing a specific drop down will be empty or will have a default value after the form is submitted, right? Test these values and choose the query based on that! It's not a very elegant way of doing it but it should work. Best regards, Fábio Ottolini ----- Original Message ----- From: "Alvin Tan" <alvintan@inscribe.com.my> To: "Php-General" <php-general@lists.php.net> Sent: Saturday, November 25, 2000 4:00 AM Subject: [PHP] Filters > Hi all, > > Newbie question. I've built a simple db and am able to add and edit. my > problem is how can i do a select staetment that filters according to my 3 > drop-down lists. (name, genre, medium) if only one of the 3 is selected, > then all records in that filed is shown, if 2, then only if both conditions > match, etc. i'm trying out different stuff but i just need a little 'nudge' > in the right direction, thanks. > > @lvin > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#27101) next »