会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
108
109
110
111
112
113
114
115
116
···
133
下一页
2018年9月17日
php学习资源
摘要: https://www.daixiaorui.com/
阅读全文
posted @ 2018-09-17 09:47 盘思动
阅读(137)
评论(0)
推荐(0)
2018年9月13日
insert tp5.1
摘要: $insertId = Db::name('user_address')->insertGetId($data);会插入数据,返回插入的 id //$flag = Db::name('user_address')->insert($data);插入数据,如果成功返回1;
阅读全文
posted @ 2018-09-13 10:29 盘思动
阅读(697)
评论(0)
推荐(0)
2018年9月12日
tp5.1 insert 返回id, 不等于符号
摘要: $insertId = Db::name('user_address')->insertGetId($data); //add=>insert, insert 返回值不再是插入的id;if ($_REQUEST['is_default'] == '1'){ Db::name('user_addres
阅读全文
posted @ 2018-09-12 17:43 盘思动
阅读(7299)
评论(0)
推荐(0)
qq接入
摘要: 「花与剑: https://blog.csdn.net/wbbott/article/details/53107009」—————————
阅读全文
posted @ 2018-09-12 15:29 盘思动
阅读(222)
评论(0)
推荐(0)
2018年9月11日
php 通过链接生成二维码,扫码支付用到
摘要: $(".good_info").on('click',function () { var id = $(this).data('id'); var string='http://qr.liantu.com/api.php?text=https://5hao.sheep.squmo.com/wx.ph
阅读全文
posted @ 2018-09-11 18:02 盘思动
阅读(506)
评论(0)
推荐(0)
tp5.1 高级查询之 表里2字段比较大小
摘要: $map = [ 'status' => 1, 'is_show' => 1,];$result = Db::name('coupon') ->where($map) ->where('total_number','exp',Db::raw('>`send_number`')) ->whereTim
阅读全文
posted @ 2018-09-11 11:57 盘思动
阅读(2241)
评论(0)
推荐(0)
2018年9月9日
tp5.1 redis 使用
摘要: 第一步:在框架根目录config里面新建redis.php文件配置ip及端口:如下: 第二步:在根目录extend里新建module目录,并在其里面建Redis.php文件,文件内容如下: 第三步:在项目根目录thinkphp目录里helper.php里设置redis助手函数,加入如下内容: 第四步
阅读全文
posted @ 2018-09-09 18:15 盘思动
阅读(8053)
评论(1)
推荐(0)
2018年9月8日
ajax的坑
摘要: $('#mkcode').on('click',function(){ $.ajax({ type : 'POST', url : '__URL__/mkcode', data : {}, dataType: 'json', //~~这里是dataTye 写成datatye 或没写json会接受不到
阅读全文
posted @ 2018-09-08 15:29 盘思动
阅读(284)
评论(0)
推荐(0)
2018年9月7日
tp 用group去重
摘要: $baseGoodIds_arr = [1,2,3,4,5,6,7,8,9];$relate_gimgs = D('GoodsImages')->where(['good_id' => ['in',$baseGoodIds_arr]])->limit($gimgs_limit)->group('we
阅读全文
posted @ 2018-09-07 17:48 盘思动
阅读(1800)
评论(2)
推荐(0)
读取图片字节大小
摘要: //获取图片大小 public function getimgweight(){ $url = 'http://cdn.caomall.net/1536240025614144138.jpeg'; $len = $this->getUriLen($url); echo $len;exit; } fu
阅读全文
posted @ 2018-09-07 11:24 盘思动
阅读(813)
评论(0)
推荐(0)
上一页
1
···
108
109
110
111
112
113
114
115
116
···
133
下一页
公告