The following is psudeo code that allows you to increment a field (say the number of posts a user has) by one. It requires two queries.
$sql = "select post_count from users where username='guy'";
///Blah blah blah
$post_count = $row[0] +1;
$sql = "update users set post_count = '$post_count'";
///Blah blah blah
Is there a way to do this in one query? Basically the following in SQL correct manner.
$sql = "update users set post_count = (post_count + 1)";