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_field_length(3) - php
mssql_field_type(3) - php
mssql_select_db(3) - php
mssql_next_result(3) - php
mssql_fetch_field(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!