Re: login problem fixed!!

From: Date: Thu, 25 Mar 2004 09:41:20 +0000
Subject: Re: login problem fixed!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181464@lists.php.net to get a copy of this message
Hello Andy, Thursday, March 25, 2004, 9:32:12 AM, you wrote: AB> but of course it could always be turned around to: AB> if($result==true) {...} but dont know what way is better or if it AB> is a personal choice... A better solution might be to check if a MySQL error has been raised - please note this will only catch invalid queries. To catch the event of the query being perfectly fine, but nothing coming back, just check the values of num_rows or affected_rows (depending on the query). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#181464) next »