Database - table list

Asked

Viewed 44 times

0

Personal as I can list all the BD table and put in a table, list or in any one corner of the page?

1 answer

2


The method below will return all tables in your BD.

 public function listTable(){
    $query = $this->pdo->query('SELECT * FROM INFORMATION_SCHEMA.TABLES');
    return $query->fetchAll(PDO::FETCH_COLUMN);   
}
  • How can I put in a SELECT OPTION?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.