phpqrcode.php生成透明背景二维码的方法

2023/11/15 20:58:02  Posted by admin

在 qrimage.php 中,插入以下行:ImageColorTransparent($target_image,$col[0]); 如下图: 这将为您修复它.ImageCopyResized($target_image,$base_image,0,0,0,0,$imgW*$pixelPerPoint,$imgH*$pixelPerPoint,$imgW,$imgH); ImageColorTransparent($target_image,$col[0]); ImageDestroy($base_image);...

layui表单提交同名多值字段如checkbox无法全部获取问题

2023/9/19 11:09:47  Posted by admin

    说说最近在使用layui中遇到的一个坑,checkbox的表单是漂亮,样式也很丰富,可是有个问题,如果像以前一样用同名的checkbox去提交的话,居然只能传送其中一个选中值,不能像这前普通表单一样提交所有同名的被选中的值去组成数组,总不能让我每个checkbox都单独命名一个吧。2在网上搜索了半天,都是仅在当前页面获取选中值状态的,没有和我一样的,只能自己写了,代码如下:html代码<input type="ch...

access 数据库写按日期查询SQL

2023/2/20 13:27:48  Posted by admin

按具体某一年查询数据select sum(amount) from 表名 where format(createtime,"yyyy")=2020按具体某一年某个月查询select sum(amount) from 表名 where format(createtime,"yyyymm")=202001按月统计某一年的数据select sum(amount) as total,Month(createtime) as month from (select * from t_records where format(createtime,"yyyy...

Access日期与时间函数汇总

2023/2/20 13:26:32  Posted by admin

今天在开发系统的时候,需要实现这样一个功能 根据选中的日期,查询相关的内容,但不是按照整个日期去过滤,而是根据,年,月,日拆分的形式去过滤,比如2013年的,2月份的 在sqlserver中,我们可以可以直接根据datePart去完成即可 select * from pays where 1=1 and datepart(year, pdate)=2013 and datepart(month, pdate)=2 and datepart(day, pdate)=26 order by pdate 但是在access中却通不过,因为方法有些不一样,需要这样写 select * from pay...

encodeURI和encodeURIComponent的区别

2022/12/15 13:17:13  Posted by admin

var test1="http://www.w3school.com.cn/My first/?uname=aa&&pwd=123456";console.log(encodeURI(test1));console.log(encodeURIComponent(test1));var test2="http://www.w3school.com.cn/My first/#qpp";console.log(encodeURI(test2));console.log(encodeURIComponent(test2));一、区别:▲ enco...