Re: Nothing returned

From: Date: Sun, 04 Nov 2001 17:51:38 +0000
Subject: Re: Nothing returned
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13993@lists.php.net to get a copy of this message
Martin wrote: > Why am I not getting anything returned from this function? > I have code doing a if user exists and b if user doesn't exist. I'm not > getting any numRows result apparently. The query is OK and returns 1 user > for $name=admin. I'm not getting any errors from isError. > > Martin > > function exists($name) > { Thanks to everyone. Problem was that $db wasn't known to the function. Solved by global $db; Martin S.

« previous php.db (#13993) next »