You are here: Re: Error Reporting - Where to Start? « All PHP « IT news, forums, messages
Re: Error Reporting - Where to Start?

Posted by Michael Fesser on 07/31/07 08:36

..oO(GA)

>It seems the script stopped at a point where I made a call from a
>mysql table like this:
>
>$foo = mysql_fetch_array(mysql_query(SELECT * FROM table a WHERE id =
>12));
>
>Which always worked before. The difference now, though, is that table
>a is now empty. And the script stopped because of that. Without
>showing an error - even on the mysql side of things.

Do you use '@' anywhere to supress error messages? How does your
mysql_query() call look? Do you check for errors with mysql_error()?

>Is there some special circumstance as to why a script would stop
>because an empty set was returned?

It should not, unless it triggers a bug and crashes the webserver.
Very unlikely in this case.

Micha

 

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

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