[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP and single quotes



----- Original Message -----
From: "Paul" <quinns_inbox@xxxxxxxxxxx>
To: "Cobalt Users" <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, May 25, 2001 1:34 AM
Subject: [cobalt-users] PHP and single quotes


> Hi,
>
> I am using a local linux server, and a win2k server in the office, both
with
> MySQL 3.23.37 and PHP 4.0.4, and if I add a block of text to the database
> with a single quote, ie "paul's nice email message." all works fine.
>
> However the same code on my cobalt RaQ4i fails - the quote messes up the
sql
> syntax. I have upgraded mysql on the raq server to 3.23.37, and I still
have
> the problem. So I assume it is a parse error in the older version of php,
> but I cannot upgrade php because the rpm installer says that various
> libraries are required, including some from glibc 2.2.
>
> Now, PHP version 4.0.5 has just been released, and I still don't see any
> packages, or upgrades for php 4.0.4. Are Cobalt going to be this slow with
> the upgrades all the time?
>
> and if anyone has installed the new version of php, let me know how it
> went.... and where I can get the packages or rpm's with the other
libraries.
> ta
>
> Paul

Paul,

I did a complete PHP 4.0.4 build and it went fine.  Also, have you tried
adding a "\" before the single quote?  It seems to work fine for me.

chuck