上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: 无限级分类 无限级类 <?php Class UnLimitTree { //组合一维数组 Static Public function unlimitedForLevel($cate, $html = '--', $pid = 0, $level = 0) { $arr = array(); fo 阅读全文
posted @ 2020-09-09 18:09 pine007 阅读(212) 评论(0) 推荐(0)
摘要: laravel中distinct()的使用方法与去重 原文:https://phpartisan.cn/news/20.html laravel 中 distinct( )的使用方法与去重, MySQL 通常使用 GROUPBY (本质上是排序动作)完成 DISTINCT 操作,如果 DISTINC 阅读全文
posted @ 2020-09-08 11:07 pine007 阅读(4349) 评论(0) 推荐(0)
摘要: mysql int类型where条件查询时 自动转换问题 表数据 正常查询 content存的是varchar类型,查的时候where content是字符类型,此时没有数据。 异常查询 content存的是varchar类型,查的时候where content是数字类型,此时查询出本来不匹配的数据 阅读全文
posted @ 2020-09-07 09:17 pine007 阅读(1073) 评论(0) 推荐(0)
摘要: 1、问题 $model = Test::first(); $model->status = 2; $model->save(); 如果Test模型对应表没有ID字段,会报错 Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not 阅读全文
posted @ 2020-09-04 15:09 pine007 阅读(571) 评论(0) 推荐(0)
摘要: 说明 in_array() 函数搜索数组中是否存在指定的值。 语法 bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) 参数 描述 needle 必需。规定要在数组搜索的值。 haystack 必需。 阅读全文
posted @ 2020-09-02 15:13 pine007 阅读(219) 评论(0) 推荐(0)
摘要: 说明 array_keys() 返回包含数组中所有键名的一个新数组 语法 array_keys(array,value,strict) 参数 描述 array 必需。规定数组。 value 可选。您可以指定键值,然后只有该键值对应的键名会被返回。 strict 可选。与 value 参数一起使用。可 阅读全文
posted @ 2020-09-02 15:12 pine007 阅读(183) 评论(0) 推荐(0)
摘要: JavaScript和JQuery进行页面跳转 原文:https://www.cnblogs.com/karrya/p/10926444.html 1、JavaScript 页面跳转 //1.我们可以利用http的重定向来跳转 window.location.replace('网址'); //2.使 阅读全文
posted @ 2020-08-31 10:04 pine007 阅读(487) 评论(0) 推荐(0)
摘要: laravel 表单验证 表单验证,可以用一下三种方式实现验证。 1、常规验证 use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; public function update(Request $request 阅读全文
posted @ 2020-08-28 15:16 pine007 阅读(405) 评论(0) 推荐(0)
摘要: 原文:https://www.cnblogs.com/wuliytTaotao/p/11752754.html 页面定制CSS代码:(复制按钮在鼠标移动到代码块上显示,鼠标移出后按钮不显示) .cnblogs-markdown pre { position: relative; } .cnblogs 阅读全文
posted @ 2020-08-27 15:01 pine007 阅读(505) 评论(0) 推荐(0)
摘要: 插入sql报错: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 2 (SQL: insert into test (a 阅读全文
posted @ 2020-08-20 17:33 pine007 阅读(3529) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页