Re: while ($row = mysql_fetch_array($result)) error suppression
Posted by Oli Filth on 09/25/06 17:15
monomaniac21 said the following on 25/09/2006 16:43:
> Hi all!
>
> How can you get rid of the error that displays if you do a query which
> returns no result and then try and fetch the array, WITHOUT having to
> put the while in another conditional like if ($result != ''), something
> more efficient if possible.
A query will only return no result if the syntax is invalid.