note 36275 deleted from ref.mysql by didou

From: Date: Fri, 03 Oct 2003 08:11:13 +0000
Subject: note 36275 deleted from ref.mysql by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57665@lists.php.net to get a copy of this message
Note Submitter: shaun@deadfish.com.au ---- If you're looking for a way to test if a variable is a valid mysql result resource then this may help: assign a variable to the result of a mysql_num_fields() call like this: $numFields = @mysql_num_fields($resultSet); the @ symbol suppresses errors, if the result set is invalid $numFields will be NULL which you can then test for with: is_null($numFields) which will return a boolean.

« previous php.notes (#57665) next »