You are here: Re: while ($row = mysql_fetch_array($result)) error suppression « PHP Programming Language « IT news, forums, messages
Re: while ($row = mysql_fetch_array($result)) error suppression

Posted by Oli Filth on 09/25/06 17:20

Oli Filth said the following on 25/09/2006 18: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.
>

That is, if the SQL syntax is invalid.


--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация