From: | Vince Vielhaber <vev(at)michvhf(dot)com> |
---|---|
To: | Gary Hoffman <ghoffman(at)ucsd(dot)edu> |
Cc: | chriskl(at)familyhealth(dot)com(dot)au, <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Determing Postgres version |
Date: | 2001-12-17 18:03:27 |
Message-ID: | Pine.BSF.4.40.0112171301340.78569-100000@paprika.michvhf.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Mon, 17 Dec 2001, Gary Hoffman wrote:
> Well, I thought of that.
>
> Here's what I get:
> ERROR: function version() does not exist
>
> Any other ideas, short of actually asking the ISP help desk?
I just did it and it worked fine:
$query = "select version()";
$res = pg_exec($conn,$query);
if(!$res) {
die("not found");
}
if(($x = pg_numrows($res)) < 1) {
echo("not found in database\n");
exit;
}
$row = pg_fetch_row($res,$ii);
echo("version: $row[0]");
and it gives:
version: PostgreSQL 7.1.2 on i386-unknown-freebsd4.2, compiled by GCC 2.95.2
Maybe it's really old?
Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev(at)michvhf(dot)com http://www.pop4.net
56K Nationwide Dialup from $16.00/mo at Pop4 Networking
Online Campground Directory http://www.camping-usa.com
Online Giftshop Superstore http://www.cloudninegifts.com
==========================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2001-12-18 01:39:43 | Re: Determing Postgres version |
Previous Message | Gary Hoffman | 2001-12-17 16:16:07 | Re: Determing Postgres version |