Increment
Posted: Fri Sep 03, 2004 1:43 pm
i want to update a field by updating the number by one.
However its not doing.. What am i missing here.
Code: Select all
//$query 1 is a insert.
$query2 = "UPDATE users SET ing=ingcount + 1 WHERE unique_id='".$_SESSION['unique_id']."' AND session='".$_COOKIE['PHPSESSID']."'";
$result = mysql_query($query2);