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

Posted by Rik on 07/30/07 22:30

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 =3D mysql_fetch_array(mysql_query(SELECT * FROM table a WHERE id =
=3D
> 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 =3D mysql_fetch_array(mysql_query('SELECT * FROM bar a WHERE id =3D=
12'));
var_dump($foo);

result:
bool(false)

Are you sure this is where it stops? Not an argument further? I assume t=
he =

query was correct (table exists etc) else you'd get a warning the argume=
nt =

was not a valid resource.

-- =

Rik Wasmus

 

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

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