Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 61B24632413 for ; Thu, 15 Jan 2009 07:47:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 42066-06-2 for ; Thu, 15 Jan 2009 07:47:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from babylon.hostgo.com (babylon.hostgo.com [65.19.169.34]) by mail.postgresql.org (Postfix) with ESMTP id AB74C6323ED for ; Thu, 15 Jan 2009 07:47:29 -0400 (AST) Received: from [195.230.105.2] (helo=[192.168.0.2]) by babylon.hostgo.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LNQgy-0002M8-8G for pgsql-php@postgresql.org; Thu, 15 Jan 2009 06:47:25 -0500 Subject: Re: PREPARE -> EXECUTE Problem From: "F." To: pgsql-php@postgresql.org Content-Type: text/plain Date: Thu, 15 Jan 2009 12:43:30 +0100 Message-Id: <1232019811.9838.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-8.el5_2.2) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - babylon.hostgo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pas-world.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.305 tagged_above=0 required=5 tests=RCVD_IN_BL_SPAMCOP_NET=2.188, RCVD_IN_SORBS_WEB=1.117 X-Spam-Level: *** X-Archive-Number: 200901/13 X-Sequence-Number: 3968 >Just ignore the default. >Have you set up the table with SERIAL? >if so this should work: After some changes, for the moment seems the good choice. But have a problem getting pdo->lastInsertId(), do not work in postgre for me. I am using this : select currval('table_id_seq'); Any clear method? -- -- Publicidad http://www.pas-world.com