WIKINDX METHODS

Method:
numRows()

Class:
SQL

Method Call:
include_once("core/sql/SQL.php");
$db = new SQL();
INT $db->numRows(ADODB_RECORDSET: $recordset);

Description:
Returns the number of rows in $recordset as returned by the select() method.

Usage:

For example (assuming the database object exists within a class as $this->db):

	$recordset = $this->db->select(array("WKX_resource"), array("id"), 
		"WHERE " . $this->db->formatField("id") . ">=" . $this->db->tidyInput(666));
	print "Number of Rows in Query: " . $this->db->numRows($recordset);

WIKINDX home      WIKINDX usage      WIKINDX classes