X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id ACC679FB205 for ; Tue, 11 Jul 2006 14:44:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 92454-05 for ; Tue, 11 Jul 2006 14:44:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 337119FB1D8 for ; Tue, 11 Jul 2006 14:44:48 -0300 (ADT) Received: from adsl-6-53-103.tys.bellsouth.net ([65.6.53.103] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1G0MHu-00045X-RM; Tue, 11 Jul 2006 13:44:46 -0400 In-Reply-To: <5887d1f40607111023n6d95d0a4r8d0a2658800bd2ef@mail.gmail.com> References: <5887d1f40607110739g6de31636n8a6a18d7159cc646@mail.gmail.com> <2D22D53B-4658-4976-B26D-41279B229350@pgedit.com> <5887d1f40607111023n6d95d0a4r8d0a2658800bd2ef@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7EFA12A7-3CC7-49CC-AF2C-6AC681B33F7C@pgedit.com> Cc: pgsql-php@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: entrance from php to postgresql Date: Tue, 11 Jul 2006 13:44:06 -0400 To: DCarrero X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/3 X-Sequence-Number: 3557 On Jul 11, 2006, at 1:23 PM, DCarrero wrote: > I was asking if this useful, or secure to do a transaction on web, or > you recomend use a function with parameters an inside this insert > data, thank for the information too... If you are inserting user entered data (especially from the web) I highly recommend you use prepared statements. This will deal with security issues related to SQL injection. I prefer to use functions, but it is not necessary. Here is a short article I wrote which you might find helpful in using prepared statements from PHP: http://pgedit.com/resource/php/pgfuncall John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL