Now, you have echo $_POST['coins'] + $data2->points;?> coins added to echo $data2->title;?>
include('header.php'); foreach($_GET as $key => $value) { $protectie[$key] = filter($value); } $id = $protectie['id']; $dbres = mysql_query("SELECT * FROM `sites` WHERE `id`='{$id}' AND `user`='{$data->login}'"); $data2 = mysql_fetch_object($dbres); if(isset($_POST['add'])){ if($_POST['coins'] <= -1){ $mesaj = "
Now, you have echo $_POST['coins'] + $data2->points;?> coins added to echo $data2->title;?>