2016年6月20日
摘要: <body> <div id="one"><span>one</span></div><div class="test" bs="aa">two</div><div class="test">three</div><div class="test">four</div><input type="te 阅读全文
posted @ 2016-06-20 21:56 By_The_Way 阅读(140) 评论(0) 推荐(0)
摘要: <?php //PDO:数据访问抽象层//dsn:数据源://带有事务功能:$dsn = "mysql:host=localhost;dbname=mydb"; ——建立数据源//造pdo对象$pdo = new PDO($dsn,"root","123");//设置为异常模式$pdo->setAt 阅读全文
posted @ 2016-06-20 21:41 By_The_Way 阅读(179) 评论(0) 推荐(0)
摘要: <?php /** file: page.class.php 完美分页类 Page */ class Page { private $total; //数据表中总记录数 private $listRows; //每页显示行数 private $limit; //SQL语句使用limit从句,限制获取 阅读全文
posted @ 2016-06-20 21:30 By_The_Way 阅读(4532) 评论(1) 推荐(0)
摘要: <!--条件处理部分--><?php//引用两个封装好的类文件include("REN.class.php");include("Page.class.php");$a=new REN();//定义一个变量作为条件变量,设置其初始值为恒成立,即在没有输入值的情况下,显示的是所有内容$tj=" 1=1 阅读全文
posted @ 2016-06-20 21:28 By_The_Way 阅读(148) 评论(0) 推荐(0)