note 107834 deleted from function.mysql-list-tables by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 18:17:07 +0000 |
| Subject: | note 107834 deleted from function.mysql-list-tables by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187748@lists.php.net to get a copy of this message | ||
Note Submitter: jdhockad at hotmail dot com
----
Having tried all the suggestions above I had no joy (with attempting to sniff for the existence of
an empty table).
The method I found to work is:
$sql = "select count(*) from " . STATUS_TABLE . ";";
$table = true;
$rs = @mysqli_query($db, $sql) or $table = false;
if ($table) {
[...]
}