摘要: <body><div style="margin-left:200px; margin-top:100px; " ><?phpinclude "./tp.class.php";$db = new TP();$sql = "select * from tpz where Ids = 1";$attr 阅读全文
posted @ 2016-05-08 14:10 一枚小兵 阅读(116) 评论(0) 推荐(0) 编辑
摘要: <?php include("./DBDA.class.php"); $db = new DBDA(); $cx=""; $value=""; $tj1 = " 1=1"; //条件1的判断 $tj2 = " 1=1"; //条件2的判断 if(!empty($_POST["name"])) { $ 阅读全文
posted @ 2016-05-08 14:09 一枚小兵 阅读(105) 评论(0) 推荐(0) 编辑
摘要: <?phpinclude "./dbda.class.php";$db = new dbda();$sql1 = "";$value = "";if(!empty($_POST["name"])){ $name = $_POST["name"]; $sql1 = " where Name like 阅读全文
posted @ 2016-05-08 14:07 一枚小兵 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 首页: <table width="100%" border="1" cellpadding="0" cellspacing="0"><tr><td>id</td><td>titlr</td><td>author</td><td>source</td><td>date</td><td>update< 阅读全文
posted @ 2016-05-08 14:06 一枚小兵 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 首页: <h1>首页</h1><table width="100%" border="1" cellpadding="0" cellspacing="0"><tr><td>代号</td><td>姓名</td><td>性别</td><td>民族</td><td>生日</td></tr> <?php$d 阅读全文
posted @ 2016-05-08 14:03 一枚小兵 阅读(191) 评论(0) 推荐(0) 编辑
摘要: <?phpinclude "wbyx.class.php"; $r = new Wbyx ("12");$r->wabao();$r->wabao();$r->wabao();$r->wabao(); $r->chakan();var_dump ($r); ?> <?phpclass Wbyx{ p 阅读全文
posted @ 2016-05-08 13:59 一枚小兵 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 方式一:已经过时1.造一个连接(建立通道)$db = mysql_connect("localhost","root","123");2.选择要操作哪一个数据库mysql_select_db("mydb",$db);3.写SQL语句$sql = "select * from Info";4.执行SQ 阅读全文
posted @ 2016-05-08 13:57 一枚小兵 阅读(183) 评论(0) 推荐(0) 编辑