note 36492 rejected from function.dbx-query by vincent

From: Date: Sat, 11 Oct 2003 20:59:23 +0000
Subject: note 36492 rejected from function.dbx-query by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58311@lists.php.net to get a copy of this message
Note Submitter: bberry@compinet.com ---- It seems that the above example doesn't work. I'm using MYSQL with the dbx and it never returns 1. It only returns and object or fails. This seems to work better if(is_object($result)){ if($result->rows == 0){ // Nothing there }else{ // Something there } }else{ // Didn't work! }

« previous php.notes (#58311) next »