note 36492 added to function.dbx-query

From: Date: Sat, 11 Oct 2003 20:58:04 +0000
Subject: note 36492 added to function.dbx-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-58310@lists.php.net to get a copy of this message
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! } ---- Manual Page -- http://www.php.net/manual/en/function.dbx-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36492 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36492&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36492&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58310) next »