Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$result = mysql_query("SELECT SUM(TOTAL) AS total FORM price_db"); $row = mysql_fetch_assoc($result); $sum = $row['total']; echo $sum;
当我运行此代码时,没有显示任何内容。我该如何解决这个错误?
您的查询中有拼写错误,应该FROM不是FORM.
FROM
FORM