$q = "UPDATE ".$tableprefix2."user SET post_thanks_thanked_times = ".$row['post_thanks_thanked_times']." WHERE userid = ".(int)($row['userid']+1);