Re: PostgreSQL and HTML output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edwin Robertson wrote:
> With psql you can get all your output in HTML format.  Anyone know of a way
> to do this in PHP?

It's psql feature and there is no automatic HTML format
in PHP's pgsql module.

If really would like, you can use passthru() and psql.

<?php
passthru('/usr/local/pgsql/bin/psql -f select.sql -H -U yohgaki -d test');
?>

where "select.sql" is query you need.

--
Yasuo Ohgaki


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux