[snip] is there a way I can get a number and increment it all in one query then?
UPDATE tblFoo SET value = (value+1) WHERE conditions [/snip] OR (forgot the PHP part) $sqlUpdate = "UPDATE tblFoo SET value = (value + $variable) WHERE conditions "; if(!($dbUpdate = mysql_query($sqlUpdate, $connectionString))){ echo "MySQL Error: " . mysql_error() . "\n"; exit(); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php