2018年5月28日
摘要: require('./libs/Smarty.class.php'); $smarty = new Smarty();$smarty->left_delimiter="{";$smarty->right_delimiter="}";$smarty->setTemplateDir('templates 阅读全文
posted @ 2018-05-28 10:52 PHP`reader 阅读(77) 评论(0) 推荐(0) 编辑
  2018年5月21日
摘要: <?phpclass Mytpl{ //输出页面 protected $tpl_val = array(); function display($url){ $content = file_get_contents($url); //获取模板资源 foreach ($this->tpl_val as 阅读全文
posted @ 2018-05-21 11:40 PHP`reader 阅读(90) 评论(0) 推荐(0) 编辑
  2018年5月17日
摘要: <ul> <?php $c =new conn11('localhost','user','','test'); $c->connect();//连接数据库 $sql2 = 'select count(*) from liuyan'; $res3 =$c->sel($sql2); $res4 = $ 阅读全文
posted @ 2018-05-17 11:34 PHP`reader 阅读(128) 评论(0) 推荐(0) 编辑
  2018年4月26日
摘要: header( 'Content-Type:text/html;charset=utf-8 ');session_start();include_once("conn/conn.php"); $name=$_POST["username"]; $pass=$_POST["password"]; $s 阅读全文
posted @ 2018-04-26 11:41 PHP`reader 阅读(124) 评论(0) 推荐(0) 编辑
  2018年3月21日
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <script src="js/jquery-1.12.3 (1).js"></script> <style type="text/css"> .wap{ he 阅读全文
posted @ 2018-03-21 09:30 PHP`reader 阅读(135) 评论(0) 推荐(0) 编辑
  2018年3月19日
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-1.11.3.min.js" ></script> </head> <script> $(function(){ $( 阅读全文
posted @ 2018-03-19 10:55 PHP`reader 阅读(356) 评论(0) 推荐(0) 编辑
  2017年12月27日
摘要: <?phpheader("Content-Type: textml; charset=utf-8");include_once ("../conn/conn.php");$title=$_POST["title"]; $content=$_POST["content"];$sc=$_FILES["u 阅读全文
posted @ 2017-12-27 16:54 PHP`reader 阅读(278) 评论(0) 推荐(0) 编辑
摘要: <td><a href="pages/xiugai.php?id=<?php echo $row["id"]?>">修改</a></td> <?phpheader('Content-Type:text/html;charset=utf-8');include_once("../conn/conn.p 阅读全文
posted @ 2017-12-27 09:23 PHP`reader 阅读(971) 评论(0) 推荐(0) 编辑
  2017年12月25日
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title> <script src="jquery.js"></script></head><body> <form action="1.php" method="post" e 阅读全文
posted @ 2017-12-25 23:37 PHP`reader 阅读(331) 评论(1) 推荐(0) 编辑
摘要: <?phpheader("Content-Type: text/html; charset=utf-8"); // print_r($_FILES); if(!is_dir('uploads')) { mkdir('uploads'); } $t_name=$_FILES["files"]["tmp 阅读全文
posted @ 2017-12-25 11:12 PHP`reader 阅读(94) 评论(0) 推荐(0) 编辑