PHP+MYSQLµÄÎÄÕ¹ÜÀíϵͳ(¶þ)

5年以前  |  阅读数:1028 次  |  编程语言:PHP 

###############index.php######################
<?session_start();
require"./inc/func.php";
mscon();
require "./inc/header.inc";
?>

  </object> </td>   
0) $tot=mysql_fetch_array($res); $total=$tot[0]; $total_page=ceil($total/$pagenum); echo ""; echo ""; if(empty($page)) $page=0; if(empty($offset)) $offset=0; $offset=$pagenum*$page; if(!empty($type)) $query="select * from $table where type='$type' $sec order by id desc limit $offset,$pagenum"; else $query="select * from $table $fir order by id desc limit $offset,$pagenum"; $res=mysql_db_query("$database",$query); if(@mysql_num_rows($res)>0) while($topic=mysql_fetch_array($res)) { if(strlen($topic[title])>40) { $topic[title]=substr($topic[title],0,40) ; $topic[title]=$topic[title]."....."; } if(trim($topic[time])==date(YÄemÔÂdÈÕ)) $topic[time]="$topic[time]"; echo" "; } else echo " ¶Ô²»Æð,±¾À¸ Ä¿ÔÝûÓÐÈκÎÎÄÕÂ!!!"; echo "
¹²:".$total."ƪ".$total_page."Ò³
[$topic[type]]$topic[title]($topic[time])"; if($topic[comm]==1) echo "¾«Æ*ÎÄÕÂ"; if($topic[locked]==1) echo "ÎÄÕÂÒÑËø¶¨"; echo " ÔĶÁ£º$topic[hits] ´Î;ÆÀÂÛ£º$topic[p_num]´Î
"; ?>


0) echo "ÉÏÒ»Ò³

"; else echo "ÉÏÒ»Ò³

"; ?>
ÏÂÒ»Ò³

"; else echo " ÏÂÒ»Ò³

";?>
Ìøתµ½:
Ñ¡ÔñÀ¸Ä¿:
?type= target="_balnk">
#####################read_article.php######################### window.close();"; exit(); } mscon(); $query="select * from $table where id='$id'"; $res=mysql_db_query("$database",$query); if(!$res) { echo "this article has been deleted or no this article!!"; exit(); } $data=mysql_fetch_array($res); add_hits($data[id]); $pre=$data[id]-1; $next=$data[id]+1; ?> <? echo "$data[title]--[$data[type]]";?>
">ÍƼo¸øÅoÓÑ *¢±iʱ¼a£º ÔĶÁ´ÎÊý£º
0) { echo "¶Ô²»Æ𣡱¾ÎÄÒѾ­±»¹ÜÀiÔ±Ëø¶¨£¡"; } else if($data[html]==1) highlight_string($data[cont]); else echo nl2br($data[cont]); ?>
*¢±iÆÀÂÛ
ÄuµÄÐÕÃu: ÄuµÄµç×ÓÓʼþ: ½oÕ¾³¤¿É¼u:
*¢±iÆÀÂÛ:

Ïa¹ØÆÀÂÛ
0) {$i=1; while($ping=mysql_fetch_array($res)) echo "ÆÀÂÛÈË:$ping[name] µç×ÓÓʼþ:$ping[mail]
".nl2br($ping[p_cont])."
ʱ¼a:$ping[time] À´×Ô:$ping[ip]
n" ; } else echo "ÔÝʱûÓб¾ÎÄÕµÄÏa¹ØÆÀÂÛ!"; ?>
 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例