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.


function exists($name)

                $sql = "SELECT * FROM users WHERE (name='$name')";
                $res = $db->query($sql);
                if (DB::isError($res)) {
                        die ($res->getMessage());
                        $Rows = $res->numRows();
                        if($Rows > 0)
                        } else

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to