- 博客(4)
- 收藏
- 关注
转载 mysql使用like模糊搜索json数据
工作中存储到mysql的数据是json类型的,在列表使用like模糊搜索时搜索不到,使用下面的方法可解决:1. $name = str_replace('"','',json_encode($name)); 2. $name = str_replace("\\",'_',$name); 原因是:1、第一步是去除json_encode转义的后字符串带的双引号2、把转义后...
2019-01-23 09:37:47
4415
转载 在线jquery.min.js引用
jQuery: <scripttype="text/javascript"src="http://code.jquery.com/jquery-latest.js"></script><scripttype="text/javascript"src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js">
2018-06-14 11:39:08
32544
1
原创 PHP上传图片
/* * 上传图片 * @params string $path 上传路径, array $file_data 上传文件信息 * @return array( * img_addr 原图地址, * image_thumb 缩略图地址, * ) */function upload_img($path, $file_data){ $data = array(); // 上传分类图像 $t_up...
2018-04-20 14:12:38
105
原创 PHP实用小代码(tp3)
打印function dd(){ $arr = func_get_args(); header("Content-type:text/html;charset=utf-8"); echo '<pre>'; foreach ($arr as $v) { var_dump($v); } echo '</pre>'; exit();}function sql($var = ''...
2018-04-20 09:44:01
185
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人