$dsn="pgsql:host=127.0.0.1;port=5432;dbname=mail;user=postgres;password=postgres";$m = new PDO($dsn);$stmt = $m->query("select * from menu");$rows = $stmt->fetchAll();var_dump($rows);