query($sql); } /** * Returns the datbases available for the current connection * * @return array */ function get_dbs() { $sql = "SHOW TABLES"; $res = $this->query($sql); return $res->fetchAll(PDO::FETCH_ASSOC); } } class MySQL_manip extends MySQL { function __construct($dsn, $user=null, $pass=null, $opt=array()) { parent::__construct($dsn, $user, $pass, $opt); } }