Re: Re(2): Test (fwd)

From: Frank Joerdens <frank(at)joerdens(dot)de>
To: Mitch Vincent <mvincent(at)cablespeed(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Re(2): Test (fwd)
Date: 2001-06-15 08:30:11
Message-ID: 20010615103011.A25185@rakete.joerdens.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, Jun 14, 2001 at 06:57:43PM -0400, Mitch Vincent wrote:
> The apostrophe being a special character in PostgreSQL (and most other
> databases), it needs to be escaped if you wish it to go nicely into a
> query..
> addslashes() and related functions will help there.
>
> Another thing to keep in mine is htmlspecialchars() -- it's very useful
> when someone might put a double quote in your form field -- which could
> seriously mess up when you have something like <INPUT TYPE="TEXT"
> NAME="Whatever" VALUE="this is what I'm "talking" about"> , sort of thing.

Also note that the PHP runtime parameter magic_quotes_gpc is usually on
by default which does the escaping by default.

- Frank

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Adam Lang 2001-06-15 12:52:48 Re: Re: [NOVICE] configuring question?
Previous Message Gyozo Papp 2001-06-15 07:57:35 RE: Test