MySQL Forums
Forum List  »  PHP

Re: Removing HTML tags using mysql
Posted by: qammar feroz
Date: April 09, 2009 04:45AM

Hi There!

I have solve this issue with a little php coding trick ( u can say),because single quote was creating problem.

before inserting the $vale into mysql db i use

$vale = str_replace("'","---",$vale);

and when displaying/printing it i use

$vale = str_replace("---","'",$vale);

and in such a simpler way solve the issue

qammar feroz

Options: ReplyQuote

Written By
Re: Removing HTML tags using mysql
April 09, 2009 04:45AM
January 20, 2009 07:38AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.