So here's what's happening. I'm trying to update the value of video_views by one and putting it into the table. $video['views']++; $query = "UPDATE videos SET video_views='{$video['views']}' WHERE video_id='{$video['id']}'"; $result = @mysql_query($query); Everytime it goes through this statement, it increments the views by two instead of one. Anyone know why this might be happening? $video is an array that holds various information on the video and is filled in earlier in the code.
$query = "UPDATE videos SET video_views = video_views + 1 WHERE video_id='{$video['id']}'"; $result = @mysql_query($query); Code (markup):