Fork me on github

11 2015 档案

摘要:准备工作 在php.ini文件中打开 extension=php_sockets.dll 确保socket正常运行 <?php header("Content-type: text/html; charset=utf-8"); class Netprint{ public $host = '192. 阅读全文
posted @ 2015-11-27 11:14 Champion-水龙果 阅读(4915) 评论(2) 推荐(0) 编辑
摘要:分别创建两个数据库和两张表study库-zone表teaching库-area表//****SQL脚本****//1.创建teaching数据库area数据表create database teaching;CREATE TABLE `area` ( `id` int(11) NOT NULL ... 阅读全文
posted @ 2015-11-27 11:10 Champion-水龙果 阅读(4011) 评论(0) 推荐(0) 编辑
摘要://两表联合查询$Model = M('T1');$Model->join('left join t2 on t1.cid = t2.id')->select();// $list = M('linkinfo')->join('LEFT JOIN __LINKCATE__ ON __LINKINFO__.c_id = __LINKCATE__.id')->select(); //三表联合查询... 阅读全文
posted @ 2015-11-24 12:06 Champion-水龙果 阅读(10128) 评论(0) 推荐(0) 编辑
摘要:ereg()函数和eregi()函数用法相同,不同之处在与ereg()区分大小写,eregi()不区分大小写在php5.3以上的版本将不再支持eregi()和ereg()函数处理办法:正则函数处理ereg('aB',$str); //区分大小写eregi('ab',$str); //不分大小写分别... 阅读全文
posted @ 2015-11-18 16:55 Champion-水龙果 阅读(259) 评论(0) 推荐(0) 编辑
摘要:ThinkPHP3.2判断是否为手机端访问并跳转到另一个模块的方法目录结构公共模块Common,Home模块,Mobile模块配置Application/Common/Conf/config.php文件'MODULE_ALLOW_LIST' => 'Home,Mobile' 接下来配置Applic... 阅读全文
posted @ 2015-11-18 10:12 Champion-水龙果 阅读(821) 评论(0) 推荐(0) 编辑
摘要:使用php获取时间今天明天昨天时间戳2013-06-20 11:12"; echo "昨天:".date("Y-m-d",strtotime("-1 day")), ""; echo "明天:".date("Y-m-d",strtotime("+1 day")). ""; echo... 阅读全文
posted @ 2015-11-17 17:19 Champion-水龙果 阅读(2515) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-17 11:02 Champion-水龙果 阅读(579) 评论(0) 推荐(0) 编辑
摘要://jquery 获取radio选中值aaaabbbbcccc //jquery 获取select选中值 阅读全文
posted @ 2015-11-10 17:52 Champion-水龙果 阅读(262) 评论(0) 推荐(0) 编辑
摘要:Mysqli是php5之后才有的功能,没有开启扩展的朋友可以打开您的php.ini的配置文件;相对于mysql有很多新的特性和优势,需要了解的朋友可以参考下 Mysqli是php5之后才有的功能,没有开启扩展的朋友可以打开您的php.ini的配置文件。 查找下面的语句:;extension=php_... 阅读全文
posted @ 2015-11-02 15:05 Champion-水龙果 阅读(1550) 评论(0) 推荐(0) 编辑

Champion-水龙果