function showTables($db) { $d = new Database(); $d->setDB($db); $tabs = $d->showTables(); print_r($tabs); $d->close(); return $tabs; }