i have following data to save in database using php
my data is : 12 ÷ 5
i have following code
$.ajax({
type: "POST",
url: "add_proc.php",
data: "topic="+ encodeURIComponent(field1)
when i check value of field1 in firebug its same (12 ÷ 5)
but when value save in database is 12 ÷ 5
$topic=mysql_escape_string($_POST['topic']);
echo($topic);
even if echo the value of variable after post i get 12 ÷ 5
i can't figure out where is problem ?
thanks