If I try to save some text on my db I'm getting an error.
lets say this:
$name = "Bob's Pizzaria";
$description = "<b>tes, just test</b>"; // also color, size formats
when I save to the database I use this:
$A_Name = mysql_real_escape_string($_REQUEST["name"]);
$A_Desc = mysql_real_escape_string($_REQUEST["description"]);
then insert into the database.
I get an error on $A_Name
because there is an apostrophe ( ' )
and on the description it doesn't retain the text format like bold, color, size etc.
What is the best or right way to do this?