On Tuesday 19 November 2002 11:13, Justin French wrote: > Depends on hwo you want your logic to work, but I think what you have isn't > terribly accurate, because you're testing $result and mysql_num_rows() at > the same time --
if (A AND B) B only gets evaluated only if A is true, so it's quite safe to do this: > > if ($result && mysql_num_rows($result) < 1) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Never put off until tomorrow what you can do today. There might be a law against it by that time. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php