From: P. Jourdan <pippo@videotron.ca>
To: pgsql-php@postgresql.org
Subject: column insert
Date: Thu, 02 May 2002 11:24:24 -0400
Message-ID: <5.1.0.14.2.20020502111644.00a8f3b8@mail.host45.com> (raw)
I have to insert 2 columns into an existing database that seems to be
altered after a restore. I do not know what datatype should be entered for
"path" and for "referer". The others are int4 and timestamptz for when_stamp.
Here is the code:
/*
* Statistics: write page view
*/
if($loglevel>=1) {
sqlquery("
insert into visits (session_id,page_id,when_stamp,path,referer)
select session_id,$page_id,'now','$REQUEST_URI','$HTTP_REFERER'
from session
where hash='$sid'");
}
Thanks for any help.
Phil Jourdan
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: pippo@videotron.ca
Subject: Re: column insert
In-Reply-To: <5.1.0.14.2.20020502111644.00a8f3b8@mail.host45.com>
References: <5.1.0.14.2.20020502111644.00a8f3b8@mail.host45.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