From: Dave Perkins <drp@shore.net>
To: Chris <tomcat@weirdness.com>
Cc: pgsql-php@hub.org
Subject: Re: files, php & pgsql
Date: Wed, 18 Oct 2000 07:17:50 -0500
Message-ID: <3.0.6.32.20001018071750.007aa450@shell1.shore.net> (raw)
In-Reply-To: <4.3.2.7.2.20001018185338.00a9fcb0@mail.pharm.usyd.edu.au>
Chris,
I ran a quick test and got the following error: "PostgresSQL query failed:
ERROR: parser: parse error at or near "
"
If the following is how the code is actually formated:
>$sql = "insert into images (picnum, image) values
>(nextval('images_picnum_seq'), '$loid')";
it might be the source of the problem.
Putting the quoted string all on one line as in:
$sql = "insert into images (picnum, image) values
(nextval('images_picnum_seq'),'$loid')";
eliminates this error.
Hope this helps . . .
Cheers,
Dave
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: drp@shore.net, tomcat@weirdness.com, pgsql-php@hub.org
Subject: Re: files, php & pgsql
In-Reply-To: <3.0.6.32.20001018071750.007aa450@shell1.shore.net>
References: <4.3.2.7.2.20001018185338.00a9fcb0@mail.pharm.usyd.edu.au> <3.0.6.32.20001018071750.007aa450@shell1.shore.net>
* 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