Re: Creating an Advanced Form

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

 



Op 3 nov. 2012 02:12 schreef "tamouse mailing lists" <
tamouse.lists@xxxxxxxxx> 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

[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