php man page for mssql_fetch_batch

Query: mssql_fetch_batch

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MSSQL_FETCH_BATCH(3)													      MSSQL_FETCH_BATCH(3)

mssql_fetch_batch - Returns the next batch of records

SYNOPSIS
int mssql_fetch_batch (resource $result)
DESCRIPTION
Returns the next batch of records.
PARAMETERS
o $result - The result resource that is being evaluated. This result comes from a call to mssql_query(3).
RETURN VALUES
Returns the number of rows in the returned batch.
EXAMPLES
Example #1 mssql_fetch_batch(3) example <?php // Connect to MSSQL and select the database $link = mssql_connect('MANGOSQLEXPRESS', 'sa', 'phpfi'); mssql_select_db('php', $link); // Send a query $result = mssql_query('SELECT * FROM [php].[dbo].[people]', $link, 100); $records = 10; while ($records >= 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 } ?> PHP Documentation Group MSSQL_FETCH_BATCH(3)
Related Man Pages
mssql_fetch_object(3) - php
mssql_free_result(3) - php
mssql_data_seek(3) - php
mssql_fetch_assoc(3) - php
mssql_field_seek(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Nicki Paul to the Moderator Team!