RE: [PHP-DB] question about '

From: Date: Sat, 12 Jul 2003 04:57:24 +0000
Subject: RE: [PHP-DB] question about '
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29206@lists.php.net to get a copy of this message
I think you should use addslashes to store the text in the database and then stripslashes when displaying the text. I think that should work, but I'm new to PHP so I might be wrong. Jerry -----Original Message----- From: Chris Payne [mailto:chris@planetoxygene.com] Sent: Saturday, July 12, 2003 2:11 PM To: php Subject: [PHP-DB] question about ' Hi there everyone, I am having alittle problem. I am calling some text that has a ' in it in the DB, but when it is being displayed on the screen the ' becomes a ? any ideas? I'm displaying just with a <?=$ctitle?> and everything works great except that. I just read about addslashes and stripslashes etc ..... but not sure if that's relevant to this being that the data in the DB has a single ' already there. Anyway help would be appreciated :-) Regards Chris

« previous php.db (#29206) next »