Ejemplo n.º 1
0
 /**
  * If the last mysql query was a SELECT with the SQL_CALC_FOUND_ROWS
  * options, this returns the number of found rows from that last
  * query with LIMIT and OFFSET ignored.
  * 
  * @access public
  * @return int              Number of found rows.
  */
 public function foundRows()
 {
     $stmt = new AMysql_Statement($this);
     $sql = 'SELECT FOUND_ROWS()';
     $stmt->query($sql);
     return $stmt->resultInt();
 }