如果是*.php页。请在开始加入:
<?php
Header("Cache-Control: must-revalidate");
$offset = 0;
$ExpireString = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
Header($ExpireString);
?>如果是*.asp.请在开始加入
Response.expires = 0;如果是*.asp 请在<head>里加入:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
<?php
Header("Cache-Control: must-revalidate");
$offset = 0;
$ExpireString = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
Header($ExpireString);
?>如果是*.asp.请在开始加入
Response.expires = 0;如果是*.asp 请在<head>里加入:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
如果是*.html 请在<head>里加入:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
$sql2="select count(*) as count2 from ".$table." where subject like '%".$key."%'";
$m_sql2 = $db->execute($sql2 ) or die ("连接数据库失败");
$count2=$m_sql2->fields['count2'];
$m_sql2->close();
echo "<table width='650'><tr><td align='left'>";
echo " <font color='#9D2269'>".$topic."</font> 共找到 <font color='#F5967E'>".$count2." </font>条,符合查寻请求:<font color='#130B60'>".$key."</font>,以下是第1至第20条搜索结果:";
echo "</td><tr></table>";
$sq_news="select ".$ID_id.",subject,writetime from ".$table." where subject like '%".$key."%'";
$m_news = $db->execute($sq_news ) or die ("连接数据库失败");
while(!$m_news->EOF and $m_news->getNumOfRows()<>0){
$time=$m_news->fields['writetime'];
$s_time=mydate($time,y).'-'.mydate($time,m).'-'.mydate($time,d);
echo "<table width='650'><tr><td align='left'>";
echo "<li><a target=_blank href=../news/news_show.php?m_now_news_id=".$m_news->fields['news_id']."> ".$m_news->fields['subject']."</a> (". $s_time.")";
echo "</td><tr></table>";
$m_news->nextRow();
}
$m_news->close;
还是不行呀!