Re: Creating an Advanced Form

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

 



I'm sorry. This code just makes me weep.

Let's just take a quick look at this line here:

> $rsSearch = mysql_query($sqlSearch);

You have not supplied a database connection, so mysql_query will fail.
Further, you have not even checked the result to *see* if it failed.

Once you fix those things, try echoing out the $sqlSearch string to
see how that ends up looking. You may be surprised.

Other than that, there is so much wrong here I don't quite know where to begin.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux