php man page for fbsql_num_rows

Query: fbsql_num_rows

OS: php

Section: 3

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

FBSQL_NUM_ROWS(3)							 1							 FBSQL_NUM_ROWS(3)

fbsql_num_rows - Get number of rows in result

SYNOPSIS
int fbsql_num_rows (resource $result)
DESCRIPTION
Gets the number of rows in the given $result set. This function is only valid for SELECT statements. To retrieve the number of rows returned from a INSERT, UPDATE or DELETE query, use fbsql_affected_rows(3).
PARAMETERS
o $ result -A result identifier returned by fbsql_query(3) or fbsql_db_query(3).
RETURN VALUES
Returns the number of rows returned by the last SELECT statement.
EXAMPLES
Example #1 fbsql_num_rows(3) example <?php $link = fbsql_connect("localhost", "username", "password"); fbsql_select_db("database", $link); $result = fbsql_query("SELECT * FROM table1;", $link); $num_rows = fbsql_num_rows($result); echo "$num_rows Rows "; ?>
SEE ALSO
fbsql_affected_rows(3), fbsql_connect(3), fbsql_select_db(3), fbsql_query(3). PHP Documentation Group FBSQL_NUM_ROWS(3)
Related Man Pages
mysql_num_rows(3) - php
fbsql_select_db(3) - php
fbsql_data_seek(3) - php
fbsql_field_type(3) - php
mysqli_num_rows(3) - php
Similar Topics in the Unix Linux Community
Calculating the Number of Rows and Average
How to: IFNULL(SELECT ...,0)
How to replace a string (case insensitive)?
Parse a File ColumnWise &amp; Delete the Rows
Removing Duplicate Rows in a file