Coupon.php
include(__DIR__.'/../../system/system.php');
foreach($_POST as $key => $value) {
$protectie[$key] = mysql_real_escape_string($value);
}
if(isset($_POST['submit'])) {
$ext1 = mysql_query("SELECT * FROM `coupons` WHERE `code`='{$protectie['code']}' AND `used`<'151'");
$ext = mysql_fetch_object($ext1);
if($ext->id != ""){
mysql_query("UPDATE `users` SET `user_coin`=user_coin+{$ext->coins} WHERE `user_id`='{$_SESSION['user_id']}'");
mysql_query("UPDATE `coupons` SET `used`=used+1 WHERE `code`='{$protectie['code']}'");
}else{
}}?>
Sistem Şuanda Çalışmamaktadır. [YAKINDA]