note 32445 rejected from function.mssql-fetch-batch by alindeman
| From: | alindeman@php.net | Date: | Wed, 28 May 2003 01:33:58 +0000 |
| Subject: | note 32445 rejected from function.mssql-fetch-batch by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49142@lists.php.net to get a copy of this message | ||
Note Submitter: pdan@extreme.ro
----
Anyone figured out how to use this ? Below is a sample code
that (imho) was supposed to work, but it doesn't:
$conn_id = mssql_connect("db", "username", "password");
$res = mssql_query(" SELECT 'test'; SELECT 'test2';", $conn_id);
while($arr = mssql_fetch_array($res))
echo($arr[0] . "<br>");
echo("mssql_fetch_batch: " . mssql_fetch_batch($res));
while($arr = mssql_fetch_array($res))
echo($arr[0] . "<br>");
This displays:
test
mssql_fetch_batch: 0
Instead of (my) expected result:
test
mssql_fetch_batch: 1
test2