Received: from troie.INTRINsec.com ([194.98.42.3]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA01258 for ; Tue, 19 Oct 1999 08:08:09 -0400 (EDT) (envelope-from edx@intrinsec.com) Received: from sync.intrinsec.com (sync.INTRINsec.com [194.98.42.5]) by troie.INTRINsec.com (8.9.3/8.9.3) with ESMTP id OAA08208 for ; Tue, 19 Oct 1999 14:09:36 +0100 (GMT+0100) Received: from dooz.corp.intrinsec.com (root@dooz.corp.INTRINsec.com [10.100.1.12]) by sync.intrinsec.com (8.8.8/8.8.8) with SMTP id OAA04708 for ; Tue, 19 Oct 1999 14:10:20 +0200 (CEST) From: Edouard DESSIOUX Organization: INTRINsec To: pgsql-interfaces@postgresql.org Subject: Problem while doing "insert" Date: Mon, 18 Oct 1999 14:08:03 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <9910181411070F.00504@dooz.corp.intrinsec.com> Content-Transfer-Encoding: 8bit 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 "Recommencer"; else echo "Voir la nouvelle base"; echo "
"; $close = pg_close($connection); if ($close == true) echo ("Déconnection a la base
"); else echo ("Aucune connection a fermer
"); 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 !!"