note 70771 rejected from function.mssql-fetch-batch by bjori
| From: | bjori@php.net | Date: | Fri, 27 Oct 2006 10:19:10 +0000 |
| Subject: | note 70771 rejected from function.mssql-fetch-batch by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119167@lists.php.net to get a copy of this message | ||
Note Submitter: php at stock-consulting dot com
----
Using this function when the result is empty just lead to unexpected immediate termination of my PHP
script. Not even a error message to inform about what was happening.
So you might consider to use mssql_num_rows($a_ressource) to check if there rows in the result set.
For example, as in the example of cassano at monroe dot net (below).