Re: Creating an Advanced Form

From: Date: Sat, 03 Nov 2012 01:12:10 +0000
Subject: Re: Creating an Advanced Form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-319655@lists.php.net to get a copy of this message
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.

« previous php.general (#319655) next »