绿色榕树
忆江南
业余无线电
UID:2 管理员
$rt2=$db->get_one("SELECT lastpost FROM pw_memberdata WHERE uid='$qdpostuid'"); $sqladd = $tdtime >= $rt2['lastpost'] ? 'todaypost=1,' : 'todaypost=todaypost+1,'; $sqladd .= $montime >= $rt2['lastpost'] ? 'monthpost=1,' : 'monthpost=monthpost+1,'; $db->update("UPDATE pw_memberdata SET {$sqladd}postnum=postnum+1,lastpost=".pwEscape($timestamp)." WHERE uid=".pwEscape($qdpostuid));