$value) { $protectie[$key] = filter($value); } $id = $protectie['id']; $dbres = mysql_query("SELECT * FROM `twitter` WHERE `active`='0' AND `user`='{$data->id}'"); $data2 = mysql_fetch_object($dbres); if(isset($_POST['add'])){ if($_POST['coins'] <= -1){ $mesaj = "
ERROR: Don't try to steal!
"; }else if(!is_numeric($_POST['coins'])){ $mesaj = "
ERROR: Invalid number!
"; }else if($_POST['coins'] > $data->coins){ $mesaj = "
ERROR: You don't have enough coins!
"; }else if($data->id != ""){ mysql_query("UPDATE `twitter` SET `points`=`points`+'{$_POST['coins']}' WHERE `user`='{$data->id}'"); mysql_query("UPDATE `users` SET `coins`=`coins`-'{$_POST['coins']}' WHERE `id`='{$data->id}'"); $mesaj = "
Coins successfully added!
"; }} ?>
login)) {?>

Add Coins

id != ""){?>

Now, you have points;?> coins added to title;?>