if ($bbuserinfo['fieldXX']=="Yes") { $doposts = 'posts = posts -1 ,'; } else { $doposts = 'posts = posts + 1,'; }