When I upload data to MySQL the “,” shows as %2C is addslashes() the correct way to fix that?
Is this the correct way to use the addslashes?
[php]$title=addslashes($_GET[‘title’]);
$address=addslashes($_GET[‘address’]);
$city=addslashes($_GET[‘city’]);
$state=addslashes($_GET[‘state’]);
$zipcode=addslashes($_GET[‘zipcode’]);
$from_when=addslashes($_GET[‘from_when’]);
$to_when=addslashes($_GET[‘to_when’]);
$from_time=addslashes($_GET[‘from_time’]);
$to_time=addslashes($_GET[‘to_time’]);
$mainitems=addslashes($_GET[‘mainitems’]);
$image=addslashes($_GET[‘image’]);[/php]