Re: PostgreSQL table list help!!!
| From: | Dennis Bolton | Date: | Tue, 13 Jun 2000 23:52:14 +0000 |
| Subject: | Re: PostgreSQL table list help!!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-393@lists.php.net to get a copy of this message | ||
See the documentation for exec() (Version 4.0 anyway)
You need to give it an array to store the output.
"Brian C. Doyle" wrote:
>
> Hello all,
>
> I have a page that is running;
> <?
> $i=passthru("psql -H -l");
> echo $i;
> ?>
>
> and I am getting a really nice table of my databases, which I do want. The
> problem is that I want to be able to each database title a link to another
> page.
>
> I have tried
> <?
> $i=exec("psql -H -l");
> echo $i[#];
> ?>
>
> and all i get if i put enough of the array variables in is </table>
>
> Please any help would be greatly appreciated.
>
> Brian C. Doyle
> Coach Team Force
> Earthlink Mindspring Technical Support
> support@mindspring.com
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net