这是我的查询,我收到错误 mysql_fetch_assoc() 期望参数 1 是资源,第 91 行给出的布尔值
$result = mysql_query(
"SELECT (LEFT(post, 3) AS message), user_id, fname, message, topic,
date, pid
FROM forum_post
order by times desc
LIMIT 10");
while (($row = mysql_fetch_assoc($result))>0) {
$user_id=$row['user_id'];
$fname=$row['fname'];
$message=$row['message'];
$topic=$row['topic'];
$date=$row['date'];
$pid=$row['pid'];
}