Various settings in the Suggest

This commit is contained in:
Hector Cortez
2011-03-10 16:24:21 +00:00
parent c8529214e6
commit 9fbcc602c8
5 changed files with 46 additions and 10 deletions

View File

@@ -714,4 +714,17 @@ class database extends database_base {
return $sql;
}
/**
* Determining the existence of a table
*/
function tableExists ($table, $db) {
$tables = mysql_list_tables ($db);
while (list ($temp) = @mysql_fetch_array ($tables)) {
if ($temp == $table) {
return TRUE;
}
}
return FALSE;
}
}