In PHP, what would be the best way of seeing if a table exists?
This is what I am using so far
public function TableExists($table) { $res = $thi
Colin has the right solution -- to use SHOW TABLES LIKE. Here is what it would look like using your code:
SHOW TABLES LIKE
public function TableExists($table) { $res = $this->Query("SHOW TABLES LIKE $table"); return mysql_num_rows($res) > 0; }