note 32445 added to function.mssql-fetch-batch

From: Date: Wed, 28 May 2003 01:22:21 +0000
Subject: note 32445 added to function.mssql-fetch-batch
Groups: php.notes 
Request: Send a blank email to php-notes+get-49141@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-batch.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32445 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32445&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32445&report=yes

« previous php.notes (#49141) next »