/** * Check if table is known * @param string $table * @return bool */ public static function hasTable($table) { $result = self::__handleQuery('SHOW TABLES LIKE \'' . $table . '\' '); if (mysql_num_rws($result) > 0) { return true; } else { return false; } }
public function numRow($data) { return mysql_num_rws($data); }