Ejemplo n.º 1
0
 /**
  * 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;
     }
 }
Ejemplo n.º 2
0
 public function numRow($data)
 {
     return mysql_num_rws($data);
 }