$query = mysql_query($query);
$numrows = mysql_num_rows($query);
if ($numrows > 0){
while ($row = mysql_fetch_assoc($quwey)){
$id = $row['id'];
$title = $row['title'];
$description = $row['description'];
$keywords = $row['keywords'];
$link = $row['link'];
echo "<h2><a href='$link'>$title</a></h2>$description<br /> <br />";
}
} else {
echo "No results found for \"<b>$keywords</b>\"";
}
我可以找出它有什麼問題。mysql_num_rows()期望參數1
你有沒有試圖讀取錯誤消息? – zerkms
請檢查變量名'$ query'不是'$ quwey' – Girish
你可以簡單地測試打印你查詢並直接在mysql中運行 –