|
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
[Back to original message]
|