This following code snippet successfully takes a specific entry from the "comments" table and dumps it into the $row array. The 'if' statement looks at a $_GET value which, if set to 'up', takes an integer from this array, increases it, and is meant to write it back to the database. While the code does increase this integer (revealed when using echo lines), it doesn't seem to write the number back to the database, or if it does, not in the right place.
$result = mysql_query("SELECT * FROM comments WHERE commentsID=$commentsid");
$row = mysql_fetch_array($result);
if($judgement=="up")
{
$insert = $row['Rank']++;
mysql_query("INSERT INTO comments ('Rank') VALUES ($insert)");
Any help will be much appreciated!