From: Zavier Sheran <zsheran@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Nextval again
Date: Fri, 12 Oct 2001 21:51:40 -0700 (PDT)
Message-ID: <20011013045140.50099.qmail@web14401.mail.yahoo.com> (raw)
Thanks for the help I received.
I did run different queries like
$number = pg_Exec ($db_connect, "SELECT
nextval('members_recordid_seq')");
$number = pg_Exec ($db_connect, "SELECT last_value
FROM members_recordid_seq");
What I get when I "echo $number;" is "Resource id #2",
no matter what number the sequence is at (currently
19).
If I run the same queries in phpPgAdmin I get the
correct results.
I run PHP 4.04 and PgSQL 7.03
Any ideas?
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: zsheran@yahoo.com
Subject: Re: Nextval again
In-Reply-To: <20011013045140.50099.qmail@web14401.mail.yahoo.com>
References: <20011013045140.50099.qmail@web14401.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox