downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<mssql_fetch_assocmssql_fetch_field>
Last updated: Thu, 26 Jun 2008

mssql_fetch_batch

(PHP 4 >= 4.0.4, PHP 5, PECL odbtp:1.1.1-1.1.4)

mssql_fetch_batch — Returns the next batch of records

Description

int mssql_fetch_batch ( resource $result )

Returns the next batch of records

Parameters

result

The result resource that is being evaluated. This result comes from a call to mssql_query().

Return Values

Returns the batch number as an integer.

Examples

Example #1 mssql_fetch_batch() Example

<?php
$resDb
= mssql_connect('localhost', 'user', 'name');
$result = mssql_query('SELECT * FROM MYTABLE', $resDb, 10000);

$intNumRows = mssql_num_rows($result);

while (
$intNumRows > 0) {
   while (
$arrRow = mssql_fetch_assoc($result)) {
      
// Do stuff ...
  
}
  
$intNumRows = mssql_fetch_batch($result);
}
?>



add a noteadd a note User Contributed Notes
Returns the next batch of records
There are no user contributed notes for this page.




<mssql_fetch_assocmssql_fetch_field>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs