Thread: Very simple cgi perl connect & select script

Very simple cgi perl connect & select script

From
"Greg T."
Date:
I'm hoping someone has a script pre-cooked that they're willing to share with
me.

Here's what I'd like to do:

Create a cgi perl script which does the following:

Thru a web browser (ergo cgi) connect to the Postgres database, and report the
contents of one table.  No order by, no joins.  Just connect, and perform an
extremely simple select.
I have perl-DBD-Pg loaded

If you need any more info please reply, and I'll supply it, if I can.

I'm a rank beginner here.

Greg



__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

Re: Very simple cgi perl connect & select script

From
Frank Bax
Date:
At 09:15 AM 9/16/05, Greg T. wrote:

>I'm hoping someone has a script pre-cooked that they're willing to share with
>me.
>
>Here's what I'd like to do:
>
>Create a cgi perl script which does the following:
>
>Thru a web browser (ergo cgi) connect to the Postgres database, and report the
>contents of one table.  No order by, no joins.  Just connect, and perform an
>extremely simple select.
>I have perl-DBD-Pg loaded



Add "DBD-Pg" to your subject and search google.  First hit has an example
of what you are asking.