query($sql); } /** * Returns the tables available in the current database * * @return array */ function get_tables() { $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); } }