חחח תפסיקו להיות נובים...
זה יחזיר "היא קיימת" רק אם יש בה תוכן,
ואם היא עדיין ריקה? :\
יש פתרון:
PHP קוד:
<?
function Table_Exists($table_name) {
$Table = mysql_query("show tables like '" .
$table_name . "'");
if(mysql_fetch_row($Table) === false)
return(false);
return(true);
}
?>