摘要: $map['id|username'] = array(intval($keyword),array('like', '%' . $keyword . '%'),'_multi' => true);return Array ( [id|username] => Array ( [0] => 1932 阅读全文
posted @ 2017-01-06 09:22 sun(阳光) 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/M-LittleBird/p/5902850.html phpstudy5.5n 安装redis扩展 http://blog.163.com/fan_xy_qingyuan/blog/static/1889877482014111111283265/ 【 阅读全文
posted @ 2016-12-15 14:52 sun(阳光) 阅读(91) 评论(0) 推荐(0) 编辑
摘要: $("form").validate({ onfocusout: function(element){ $(element).valid(); }, rules: { 'username': { required: true, }, password: { required: true, }, ve 阅读全文
posted @ 2016-12-09 19:05 sun(阳光) 阅读(222) 评论(0) 推荐(0) 编辑
摘要: mysql 中find_in_set()和in()用法比较 在mysql中in可以包括指定的数字,而find_in_set()用于特定的数据类型。 find_in_set 函数使用方法 个例子来说:有个文章表里面有个type字段,它存储的是文章类型,有 1头条、2推荐、3热点、4图文...1,12, 阅读全文
posted @ 2016-11-23 11:22 sun(阳光) 阅读(2379) 评论(1) 推荐(0) 编辑
摘要: 地址:http://blog.csdn.net/fationyyk/article/details/51085987 版权声明:本文为博主原创文章,未经博主允许不得转载。 版权声明:本文为博主原创文章,未经博主允许不得转载。 钩子一般可以理解为我们所说的插件。 在模板中添加 hook方法定义在fun 阅读全文
posted @ 2016-11-18 17:30 sun(阳光) 阅读(557) 评论(0) 推荐(0) 编辑
摘要: <?phpnamespace Org\Enum;class ExamTypeEnum { const DANXUAN = 1; const DUOXUAN = 2; const PANDUAN = 3; const TIANKONG = 4; const WENDA = 5; const CAILI 阅读全文
posted @ 2016-11-18 15:17 sun(阳光) 阅读(219) 评论(0) 推荐(0) 编辑
摘要: <extend name="Public/base"/><block name="page-title">导入试题<small></small></block><block name="body"> <div class="panel"> <div class="panel-operate"> <d 阅读全文
posted @ 2016-11-09 19:16 sun(阳光) 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/tinyphp/archive/2013/04/09/3009385.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh 阅读全文
posted @ 2016-11-08 18:15 sun(阳光) 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 把预定义的 HTML 实体 "&lt;"(小于)和 "&gt;"(大于)转换为字符: <?php$str = "This is some &lt;b&gt;bold&lt;/b&gt; text.";echo htmlspecialchars_decode($str); ?> 上面代码的 HTML 阅读全文
posted @ 2016-11-03 19:37 sun(阳光) 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <?php echo strip_tags("Hello <b>world!</b>"); ?> 阅读全文
posted @ 2016-11-03 19:34 sun(阳光) 阅读(137) 评论(0) 推荐(0) 编辑