Can someone tell me how I can add value to database?
My code looks like this:
if(isset($_GET['gold']))//
{
$gold = $_GET['gold'];
mysqli_query($db_handle, "UPDATE serverplayers SET Gold='$gold' WHERE Unique_Id = '$unique_id'");
}
}
mysqli_close($db_handle);
}
In this code I'm set new value "gold" at table "gold" . But I don't want do that . I want add value (+) to current value in "gold" table.
Note:"$gold" is my variable , "gold" is my table.
Thanks for any advice. Best Regards Piter.