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

Posted by GA on 08/02/07 03:35

On Tue, 31 Jul 2007 00:30:07 +0200, Rik <luiheidsgoeroe@hotmail.com>
wrote:

>On Mon, 30 Jul 2007 23:19:41 +0200, GA <fang27@excite.com> wrote:
>> 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.
>
>So, immidiately after it stopped, no further evaluation? I would expect
>$foo just to be false... It does here:
>
>$foo = mysql_fetch_array(mysql_query('SELECT * FROM bar a WHERE id = 12'));
>var_dump($foo);
>
>result:
>bool(false)
>
>Are you sure this is where it stops? Not an argument further? I assume the
>query was correct (table exists etc) else you'd get a warning the argument
>was not a valid resource.

Yes, it does stop. I commented out the whole script below it, made
sure it was making it to that statement, and used mysql_error() to ask
for anything weird.

Nothing happens - script just stops based on a return from an empty
table. This is very weird - I have other scripts that make similar
calls for other sites, and they don't just stop suddenly.

-TC

 

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

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