note 39004 rejected from function.mysql-free-result by didou
| From: | didou@php.net | Date: | Wed, 14 Jan 2004 12:22:54 +0000 |
| Subject: | note 39004 rejected from function.mysql-free-result by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63519@lists.php.net to get a copy of this message | ||
Note Submitter: teferi@earth.co.jp
----
Is there a way to prevent php from giving the warning mentioned below, by checking what my query
returned (result set or resource)? Checking whenever or not a query was run is easy:
function close() {
if ($this->result != null)
mysql_free_result($this->result));
mysql_close($this->link);
}