function db_table_exists

6.x db_table_exists($table_name)
4.x db_table_exists($table_name)
5.x db_table_exists($table_name)

Returns TRUE if the table specified exists or not.

2 calls to db_table_exists()
audit_install in modules/audit/audit.install
Implementation of hook_install.
course_search_install in modules/course_search/course_search.install
Implementation of hook_install


includes/, line 836
This file contains mostly db shortcuts.


function db_table_exists($table_name) {
  $res = db_query("SHOW TABLES LIKE ? ", $table_name);
  $cur = db_fetch_array($res);
  if ($cur [0] == $table_name) {
    return TRUE;

  return FALSE;