Re: Refining my search app..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux