I'm using paypal buttons as payment, the problem is, when the player type the username, and if have special characters the query don't update item quantity, but with normal name it updates.
{
global $first_name, $last_name, $payer_business_name, $custom,$payer_email;
global $mysql_linklok;
if (($data == "") || ($data == "NOTREQUIRED") || ($user2==""))
{
$key="Could not update user ".$user2;
return (string)$key;
}
$mysql_linklok=mysqli_connect("host","user","pass","db");
if ($mysql_linklok!==false)
{
$query="UPDATE users SET points=points + ".$data." WHERE name=".llipn_quote_smart($user2);
mysqli_query($mysql_linklok,$query);
mysqli_close($mysql_linklok);
}
$key=$data." points added to ".$user2;
return (string)$key;
i've been searching for hours and tried many options, but not of them works.
can someone help me how to solve it?
Many thanks