mysql add to value
UPDATE addingValueToExisting SET GameScore = GameScore+10 WHERE Id = 4;
mysql add to value
UPDATE addingValueToExisting SET GameScore = GameScore+10 WHERE Id = 4;
mysql add to value
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
mysql_query("UPDATE `some_table` SET `value` = `value` + 1000 WHERE `id` = 1");
mysql_close($con);
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us