From: John DeSoi <desoi@pgedit.com>
To: DCarrero <dcarreroc@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: entrance from php to postgresql
Date: Tue, 11 Jul 2006 13:44:06 -0400
Message-ID: <7EFA12A7-3CC7-49CC-AF2C-6AC681B33F7C@pgedit.com> (raw)
In-Reply-To: <5887d1f40607111023n6d95d0a4r8d0a2658800bd2ef@mail.gmail.com>
References: <5887d1f40607110739g6de31636n8a6a18d7159cc646@mail.gmail.com>
<2D22D53B-4658-4976-B26D-41279B229350@pgedit.com>
<5887d1f40607111023n6d95d0a4r8d0a2658800bd2ef@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: desoi@pgedit.com, dcarreroc@gmail.com
Subject: Re: entrance from php to postgresql
In-Reply-To: <7EFA12A7-3CC7-49CC-AF2C-6AC681B33F7C@pgedit.com>
References: <5887d1f40607110739g6de31636n8a6a18d7159cc646@mail.gmail.com> <2D22D53B-4658-4976-B26D-41279B229350@pgedit.com> <5887d1f40607111023n6d95d0a4r8d0a2658800bd2ef@mail.gmail.com> <7EFA12A7-3CC7-49CC-AF2C-6AC681B33F7C@pgedit.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