Re: [PHP-DB] Refining my search app..

2002-12-02 Thread Adam Voigt
A little cleaner: switch($_POST[column]) { case("foo"):$query = mysql_query("WHATVER");break; case("too"):$query = mysql_query("BLAH");break; default:$query = mysql_query("DOH");break; } while($row = mysql_fetch_array($query)) { // DO SOMETHING } -- Adam Voigt ([EMAIL PROTEC

[PHP-DB] Refining my search app..

2002-12-02 Thread Ryan Christensen
Here's the skinny: I'm starting development on a small search application & need some input on a small roadblock I've run into.. What I need: - Script needs to be able to search database for matching queries in a specified column. (Ex: from a dropdown list the user selects "foo" and types in "b