Re: postgresql in PHP

From: brian <brian(at)zijn-digital(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql in PHP
Date: 2007-10-30 03:17:08
Message-ID: 4726A234.5000802@zijn-digital.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

davidrboyer(at)gmail(dot)com wrote:
> When I try to add or update a postgresql field from php, even though I
> escape it, when I
> try to include a single quote in a varchar field, the result is the
> quote and everything following
> is missing after being INSERTed or UPDATEd. Anybody have any ideas
> what is going on?
> Thanks in advance!

What is the setting for magic_quotes_gpc in your php.ini?

hint: get_magic_quotes_gpc() will return TRUE if this is enabled, so you
can use stripslashes() where necessary.

Are you using a database wrapper (eg. PEAR MDB2) or the pg_whatever()
functions?

If the former, are you using a prepared statement?

brian

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-10-30 04:13:55 Re: PostgreSQL and AutoCad
Previous Message Dot Yet 2007-10-30 03:16:40 SSL Connectivity on Solaris 10 x86