note 98510 deleted from function.mssql-fetch-batch by danbrown

From: Date: Sat, 19 Jun 2010 14:22:52 +0000
Subject: note 98510 deleted from function.mssql-fetch-batch by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170289@lists.php.net to get a copy of this message
Note Submitter: David N. ---- That is not a good example. Correct usage: <?php $mslink=mssql_connect("hostname", "username", "password"); $msresult=mssql_query("SELECT * FROM ORDERS", $mslink, 100); $numrows= mssql_num_rows($msresult); unset($msrow); while ($numrows>0) { while($msrow=mssql_fetch_row($msresult)) { //do something } $numrows=mssql_fetch_batch($msresult); } ?>

« previous php.notes (#170289) next »