0
對於下面的代碼,我想創建一個名爲totalScore2的新變量,它等於days + totalScore。創建兩個其他變量之和的變量
我該怎麼做?
由於提前,
約翰
$sqlStr = "SELECT
l.loginid,
l.username,
l.created,
DATEDIFF(NOW(), l.created) AS days,
COALESCE(s.total, 0) AS countSubmissions,
COALESCE(c.total, 0) AS countComments,
COALESCE(s.total, 0) * 10 + COALESCE(c.total, 0) AS totalScore