Re: Creating an Advanced Form
| From: | Matijn Woudt | Date: | Sat, 03 Nov 2012 10:25:29 +0000 |
| Subject: | Re: Creating an Advanced Form | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319658@lists.php.net to get a copy of this message | ||
Op 3 nov. 2012 02:12 schreef "tamouse mailing lists" <
tamouse.lists@gmail.com> het volgende:
>
> 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.
Have you ever used mysql in this form? It works perfectly. Having something
like or die(mysl_error()); is recommended, atleast for debugging, not for
production where you should check the return value and silently fail.
- Matijn