Query: mssql_num_rows
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MSSQL_NUM_ROWS(3) MSSQL_NUM_ROWS(3) mssql_num_rows - Gets the number of rows in resultSYNOPSISint mssql_num_rows (resource $result)DESCRIPTIONmssql_num_rows(3) returns the number of rows in a result set.PARAMETERSo $result - The result resource that is being evaluated. This result comes from a call to mssql_query(3).RETURN VALUESReturns the number of rows, as an integer.EXAMPLESExample #1 mssql_num_rows(3) example <?php // Connect to MSSQL and select the database $link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); mssql_select_db('php'); // Select all our records from a table $query = mssql_query('SELECT * FROM [php].[dbo].[persons]'); echo 'Total records in database: ' . mssql_num_rows($query); // Clean up mssql_free_result($query); ?>SEE ALSOmssql_query(3), mssql_fetch_row(3). PHP Documentation Group MSSQL_NUM_ROWS(3)
Related Man Pages |
---|
mssql_fetch_object(3) - php |
mssql_fetch_array(3) - php |
mssql_free_result(3) - php |
mssql_data_seek(3) - php |
mssql_result(3) - php |
Similar Topics in the Unix Linux Community |
---|
User Guide: Posting in the Emergency Forum |
Forum Video Tutorial: How to Use Code Tags |
Please Welcome Don Cragun as Lead Moderator |
Denial Of Service Attack Update |