I have a MySQL table where I have an integer column that I want to use php to set to -1. But the problem is that anytime I do
mysqli_query($con, "UPDATE mytable SET mycolomn='-1' ") or die(mysqli_error($con));
It does not set it to minus one "-1", rather I sets it to 0. I need the number in that field to be changed to minus one "-1" without it been set to 0.
I have tried to change the column to Decimal but still the same problem.