mssql_fetch_batch
Returns the next batch of records
&reftitle.description;
intmssql_fetch_batch
resourceresult
Returns the next batch of records
&reftitle.parameters;
result
The result resource that is being evaluated. This result comes from a
call to mssql_query.
&reftitle.returnvalues;
Returns the batch number as an integer.
&reftitle.examples;
mssql_fetch_batch example
= 0)
{
while($row = mssql_fetch_assoc($result))
{
// Do stuff ...
}
--$records;
}
if($batchsize = mssql_fetch_batch($result))
{
// $batchsize is the number of records left
// in the result, but not shown above
}
?>
]]>