How can I list all the DB table and put it in a table, list or any corner of the page?
How can I list all the DB table and put it in a table, list or any corner of the page?
The method below will return all the tables in your DB.
public function listTable(){
$query = $this->pdo->query('SELECT * FROM INFORMATION_SCHEMA.TABLES');
return $query->fetchAll(PDO::FETCH_COLUMN);
}