/**
  * Returns number os rows of the query.
  * This function is for simple of name
  * @return integer
  */
 public function count($type = 'row')
 {
     if ($type == 'row') {
         return sasql_num_rows($this->result);
     }
     return sasql_num_fields($this->connection);
 }
Esempio n. 2
0
 /**
  * Number of rows in the result set
  *
  * @access	public
  * @return	integer
  */
 function num_rows()
 {
     return @sasql_num_rows($this->result_id);
 }
Esempio n. 3
0
 /**
  * Affected Rows
  *
  * @access	public
  * @return	integer
  */
 function affected_rows()
 {
     return @sasql_num_rows($this->conn_id);
 }
Esempio n. 4
0
 /**
  * Return the number of rows returned from the SELECT query qid.
  */
 function db_num_rows($qid = false)
 {
     return sasql_num_rows($qid);
 }