Re: retrieving special characters from MySQL

From: Date: Mon, 23 Jul 2001 12:47:05 +0000
Subject: Re: retrieving special characters from MySQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10664@lists.php.net to get a copy of this message
pull it out then use stripslashes() as you display it ... Steve "Andrew" <ablew@bigpond.net.au> wrote in message news:20010723124443.37394.qmail@pb1.pair.com... > Hi, I'm having trouble getting special characters out of MySQL using php > 4.06. > > I add a field like "McDonald's" from PHP and in mysql client I can see the > entry (McDonald's) is put into the database correctly. However the problem > arises when I query it and it prints out (McDonald\'s). Is there any way for > php to pull out the string as it is in the database without putting in the > escape character ( \ ) ???? > > thx > >

« previous php.db (#10664) next »