You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($response == "VERIFIED" && mysql_result(mysql_query("SELECT COUNT(*) FROM PaymentsLog WHERE uniqueId='".mysql_escape_string($_POST['item_number'])."'"), 0) == 0)
{
$profile = mysql_query("select * from Profiles where unique_id='".mysql_escape_string($_POST['item_number'])."' LIMIT 1");
if ($profile)
{
while($user = mysql_fetch_assoc($profile))
{
mysql_query("INSERT INTO `PaymentsLog` (`date`,`userId`,`amount`,`currency`,`uniqueId`) VALUES (".time().",{$user['ID']},{$_POST['mc_gross']},'{$_POST['mc_currency']}','{$_POST['item_number']}')");
mysql_query("UPDATE `Profiles` SET `balance`=".floatval($user['balance'] + $_POST['mc_gross'])." WHERE `ID`=".$user['ID']);