How can I list the tables in a database using PostgreSQL, through PHP. I know about the \dt command but this doesn't seem to work through PHP. I've tried the following where $sql is equal to "dt" "\dt" "\dt" "show tables" "pretty pretty pretty please show me the tables".
$res=pg_select($sql);
Thanks
Bubblenut