Keine Notwendigkeit der Abfrage. Führen Sie einfach dies aus
$this->db->table_exists('customer');
Beispiel
$query = $this->db->table_exists('customer');
$count = count($query);
if (empty($count)) {
echo "No Table Found";
}
elseif ($count == 1) {
echo "Oopzz! There is table";
}
elseif ($count >1) {
echo "Ohh !! There are many tables";
}