数据库搜索
本程序运行较费时间,需要耐心等待。
METHOD = POST>
>
查询项目
文章内容
文章标题
文章作者
期刊名
分类号
搜索内容
索引文件名
索引标题
从第
开始的条,共有条记录。
文章分类
?语言理论
历史学
中国哲学
其他
?语言理论
$title作者:$author ;
$count++;
//fputs($fp, $title作者:$author );
// }
}
}
@mysql_free_result($result);
mysql_close($link_id);
set_time_limit(30);
if($index_title==){
$index_title=学而斋资料;
}
$index_title=$index_title._.$data_search;
$html_header=$index_title;
$html_header.=$index_titlern;
$dte_created=date(Y-m-d H:i:s);
$html_header.=$index_describe 发现了 $count 条/查询日期:$dte_createdrn;
$html_header.=rn;
$data=$html_header.$index_data;
$data.=;
/*If(strlen($index_file)==0){
header(Content-type: text/html);
echo $data;
}
else
{
$in_file=$index_file;
$index_file=\index\.$index_file;
$fp=indexfile($index_file,$index_title,$index_describe);
fputs($fp, 发现了 $count 条);
fputs($fp, 查询日期:$dte_createdrn);
fputs($fp,rn);
fputs($fp, $index_data);
fputs($fp, );
fclose($fp);
echo点这里看新加入的文件索引;
}
*/
If(strlen($index_file)!=0){
$in_file=$index_file;
$index_file=\index\.$index_file;
}
else
$in_file=temp.html;
$fp=indexfile($index_file,$index_title,$index_describe);
fputs($fp, 发现了 $count 条);
fputs($fp, 查询日期:$dte_createdrn);
fputs($fp,rn);
fputs($fp, $index_data);
fputs($fp, );
fclose($fp);
// echo点这里看新加入的文件索引;
header(location

index_url$in_file);
//echo索引文件为 $index_file;
echo返回 ;
endif;
?>