pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniele Orlandi <daniele@orlandi.com>
To: pgsql-sql@hub.org
Subject: What do I need to escape in an Insert ?
Date: Fri, 31 Jul 1998 00:50:35 +0200
Message-ID: <35C0F8BB.EB367157@orlandi.com> (raw)

Suppose I'm going to insert the content of a <TEXTAREA> in a table.
Obviously, there will be characters that could potentially confuse the SQL
statement. What (and how) do I need to escape the data to make it acceptable for
an Insert ?

I currently use the PHP's addlashed function, is it enought ?

Thanks for your response !

Bye!

-- 
 Daniele

-------------------------------------------------------------------------------
Why use Windows, since there is a door?
(By fachat@galileo.rhein-neckar.de, Andre Fachat)
-------------------------------------------------------------------------------
 Se telecom italia aggiungesse uno scatto al giorno ad ogni abbonato, dal
 primo Gennaio avrebbe rubato 669.891.000.000 Lire.
-------------------------------------------------------------------------------
 Daniele Orlandi - Utility Line Italia - http://www.orlandi.com
 Via Mezzera 29/A - 20030 - Seveso (MI) - Italy
-------------------------------------------------------------------------------



view thread (5+ messages)  latest in thread

Message-ID: <35C0F8BB.EB367157@orlandi.com>
Permalink:  ../35C0F8BB.EB367157@orlandi.com/
Also on:    postgresql.org/message-id/35C0F8BB.EB367157@orlandi.com

 · 

reply

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-sql@postgresql.org
  Cc: daniele@orlandi.com, pgsql-sql@hub.org
  Subject: Re: What do I need to escape in an Insert ?
  In-Reply-To: <35C0F8BB.EB367157@orlandi.com>
  References: <35C0F8BB.EB367157@orlandi.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