From: | Edouard DESSIOUX <edx(at)intrinsec(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Problem while doing "insert" |
Date: | 1999-10-18 12:08:03 |
Message-ID: | 9910181411070F.00504@dooz.corp.intrinsec.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
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 !!"
From | Date | Subject | |
---|---|---|---|
Next Message | Compte utilisateur Sultan-advl | 1999-10-18 13:21:51 | Connecting to Postgresql linux box from windows 95 with Pgaccess or Delphi |
Previous Message | Lutz Neugebauer | 1999-10-18 12:07:54 | Problems with pgaccess an PGPORT |