我一直在按照本教程制作搜索引擎。我收到错误消息(在网站上查看LINK。尝试搜索,您会收到错误消息)
代码:
$query = mysql_query($query);
$numrows = mysql_num_rows($query);
if($numrows > 0){
while($row = mysql_fetch_assoc($query)){
$id = $row['id'];
$title = $row['title'];
$description = $row['description'];
$keywords = $row['keywords'];
$link = $row['link'];
echo "<h2><a href='$link's>$title</a></h2>
$description<br /><br />";
}
}else
echo "No Results found for <b>$k</b>";
//disconnect
mysql_close();
?>