I am trying to run this simple mysqli command in php:
$query = "UPDATE config SET visit = visit + 1";
if ($stmt = $con->prepare($query)) {
$stmt->execute();
$stmt->close();
}
Table config only has 1 row. However, the value instead of 1, it is increasing by 2!
So if the current value is 0, the next value will be 2, and then 4, etc!
I cannot understand this.