文件名称:简易博客系统php原码
文件大小:3KB
文件格式:RAR
更新时间:2015-07-09 17:23:54
博客系统 php
简易博客系统php原码 index.php页面: <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>php首页</title> </head> <body> 添加内容
<form method="get" action=""> <input type="text" name="keys"> <input type="submit"name="subs" value="搜索"> </form>
<?php include("conn.php");//引入连接数据库 if(!empty($_GET['keys'])){ $w=" `title` like '%".$_GET['keys']."%' "; }else{ $w=1; } $sql="select*from `news` where $w order by id desc limit 20"; $query=mysql_query($sql); while($rs=mysql_fetch_array($query)){ ?>
标题:<?php echo $rs['title'] ?>|编缉|删除|
<?php echo iconv_substr( $rs['contents'],0,5,"gbk" )?> ...
<?php } ?>
【文件预览】:
bokexitong
----index.php(891B)
----add.php(685B)
----del.php(181B)
----edit.php(872B)
----view.php(484B)
----conn.php(207B)