上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 递归打印数组递归打印目录文件 $value) { digui($value); } }else{ echo $array,""; }}digui($arr);//递归打印当前目录下的所有目录function printdir($path,... 阅读全文
posted @ 2015-08-20 21:05 飘逸110 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 观察者模式存在观察者和被观察者被观察者的状态发生改变,通知观察者调用观察者的update方法,观察者的update方法对被观察者的状态进行检测,做出相应的操作被观察者存在接口attach,detach,notify观察者模式作用:将操作转化为通知 观察者模式 ... 阅读全文
posted @ 2015-08-19 15:07 飘逸110 阅读(206) 评论(0) 推荐(0) 编辑
摘要: cunchu.php存储发送的帖子到客户端返回重发");}$rs=mysql_query($sql,$conn);$index=mysql_insert_id($conn);echo $index;if($rs){ echo "发送成功"; echo "查看";}?>chakan.php... 阅读全文
posted @ 2015-08-18 16:50 飘逸110 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 建表:帖子表和回复表create table thread(tid int not null auto_increment primary key,username varchar(20) not null default '',title varchar(40) not null default ... 阅读全文
posted @ 2015-08-18 16:43 飘逸110 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 前期准备config.php存储一些运行参数,数据库主机,用户名,密码,库名,环境常量mysql_fun.php封装的函数init.php初始化参数 阅读全文
posted @ 2015-08-17 19:32 飘逸110 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 03.php 编辑 method="post"> id name "> gender "> 04.php返回";?... 阅读全文
posted @ 2015-08-16 22:30 飘逸110 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 首先默认选择库test1,01.php中然后用show tables;查询出所有的表,然后用循环依次输出所有的表名,和操作超链接,超链接上对应有该表的信息传到02.php,02.php中,根据接收到的参数,查询到该表,然后用desc 表名,结果循环输出表字段名,再查询出所有字段循环输出对应的值,后面... 阅读全文
posted @ 2015-08-15 21:24 飘逸110 阅读(529) 评论(0) 推荐(0) 编辑
摘要: package com.itheima.domain;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java... 阅读全文
posted @ 2015-08-14 21:06 飘逸110 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 在MySQL中建立user表,插入数据create table user(id int,name varchar(10),age int)engine myisam charset utf8;insert into user(id,name,age) values(1,'zhang',18),(2,... 阅读全文
posted @ 2015-08-13 22:04 飘逸110 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 首先由一个文本文档read.txtliulan.html 留言 标题: 留言: 1.php","查看资源","";?>2.php",$row[0],"","\n"; $i=$i+1;}fclose($fo);?>3.php 阅读全文
posted @ 2015-08-12 21:48 飘逸110 阅读(403) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页