作者:丿至尊丨紫风 | 来源:互联网 | 2018-03-13 10:36
客人主页:class/guest.php
北京时间 echo date("Y年m月d日");?> |
您好,客人!您目前只能浏览班级照片和校园风光。请到"访客留言"留下您的祝福。 |
|
祝贺词 | 1.欢迎使用杏林同学录。 | 2.如果发现bug,请尽快通知我。 | 3.技术支持: webmaster@medguider.51.net | 最新访客留言 | include "config.php"; $result = mysql_query("SELECT * FROM notebookg",$db); $row=mysql_num_rows($result);//查看结果有多少行 if ($row<=1) {$x=$row;} else {$x=2;} $result = mysql_query("select * from notebookg ORDER BY time DESC limit 0,$x",$db);//读取最近2条留言 for ($i=0;$i<=($x-1);$i++) { $name=mysql_result($result,$i,'name'); $time=mysql_result($result,$i,'time'); $title=mysql_result($result,$i,'title'); $nnote=mysql_result($result,$i,'nnote'); echo "◆留言人:$name 时间 $time 主题:$title 内容:$nnote "; } mysql_close($db); ?> | |
悄悄话 | 对不起,您不是本班同学 | 最新加入 | 对不起,您不是本班同学 |
|
|
|
|
| | |
您是第
$fs = fopen("counter.txt","r+");
$hit = fgets($fs,10);
$hit+=1;
rewind($fs);
fwrite($fs,$hit,10);
$hit = number_format($hit);
fclose($fs);
echo "$hit";
?>
位来访者!
主页制作: 医学导航网
本页使用了flash,如果不能正常浏览,请安装flash插件