From: Edouard DESSIOUX <edx@intrinsec.com>
To: pgsql-interfaces@postgresql.org
Subject: Problem while doing "insert"
Date: Mon, 18 Oct 1999 14:08:03 +0200
Message-ID: <9910181411070F.00504@dooz.corp.intrinsec.com> (raw)
Hello,
I'm using php Version 3.0.12 to interface
with a postgresql sgbd.
When i'm doing this request :
$query = "insert into mailing values ('$champs1', '$champs2', display=$myradio)";
$result = pg_exec($connection,$query);
if (!$result)
echo "<a href=https://dooz.corp.intrinsec.com/mail/insert.php3>Recommencer</a>";;
else
echo "<a href=https://dooz.corp.intrinsec.com/mail/essai.php3>Voir la nouvelle base</a>";
echo "<br>";
$close = pg_close($connection);
if ($close == true)
echo ("<b>Déconnection a la base</b><br>");
else
echo ("<b>Aucune connection a fermer</b><br>");
The insert succeed, but it insert 6 or more time
the same entry.
Have i done something wrong ?
--
Edouard DESSIOUX
Proverbe chien :
"Si ca se mange pas,
Si ca se baise pas,
Pisse dessus !!"
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: edx@intrinsec.com
Subject: Re: Problem while doing "insert"
In-Reply-To: <9910181411070F.00504@dooz.corp.intrinsec.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