note 70771 added to function.mssql-fetch-batch
| From: | php at stock-consulting dot com | Date: | Fri, 27 Oct 2006 09:50:42 +0000 |
| Subject: | note 70771 added to function.mssql-fetch-batch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119161@lists.php.net to get a copy of this message | ||
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).
----
Server IP: 212.124.37.9
Probable Submitter: 217.86.159.154 (proxied: 1.1 BINSERVER16)
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-batch.php
Edit -- https://master.php.net/note/edit/70771
Del: integrated -- https://master.php.net/note/delete/70771/integrated
Del: useless -- https://master.php.net/note/delete/70771/useless
Del: bad code -- https://master.php.net/note/delete/70771/bad+code
Del: spam -- https://master.php.net/note/delete/70771/spam
Del: non-english -- https://master.php.net/note/delete/70771/non-english
Del: in docs -- https://master.php.net/note/delete/70771/in+docs
Del: other reasons-- https://master.php.net/note/delete/70771
Reject -- https://master.php.net/note/reject/70771
Search -- https://master.php.net/manage/user-notes.php