摘要: 一、理解 mysql与mysqli都是PHP语言使用数据库的函数。 在php5版本之前,一般是用php的mysql函数去驱动mysql数据库的,如mysql_query()的函数,属于面向过程。 在php5版本以后,增加了mysqli的函数功能,某种意义上,它是mysql系统函数的增强版,更为稳定高 阅读全文
posted @ 2021-09-14 18:37 邈宇 阅读(257) 评论(0) 推荐(0)
摘要: BC高精度数学函数 加:bcadd(左操作数,右操作数,保留小数位) echo bcadd(12.333,0.01,2); 减:bcsub(左操作数,右操作数,保留小数位) echo bcsub(12.333,0.01,2); 乘:bcmul(左操作数,右操作数,保留小数位) echo bcmul( 阅读全文
posted @ 2021-08-23 17:32 邈宇 阅读(41) 评论(0) 推荐(0)
摘要: 版本:PHP版本7.1.7;项目thinkphp6.0.9问题:访问时报错“该网页无法正常运作 找到问题:PHP配置文件php.ini找到以下两个配置项修改为On,并予重启php display_errors = Off 修改 display_errors = On display_startup_ 阅读全文
posted @ 2021-08-03 15:08 邈宇 阅读(1057) 评论(0) 推荐(0)
摘要: Swoole扩展是按照PHP标准扩展构建的。使用phpize来生成编译检测脚本,./configure来做编译配置检测,make进行编译,make install进行安装 先选择存放包目录,获取安装包 进入目录:cd /usr/local/src/ 获取安装包: wget -O Swoole-4.4 阅读全文
posted @ 2021-08-03 14:21 邈宇 阅读(121) 评论(0) 推荐(0)
摘要: 安装tp6时出现Composer 版本问题: Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You shou 阅读全文
posted @ 2021-07-30 18:05 邈宇 阅读(450) 评论(0) 推荐(0)
摘要: 基本使用 查看firewall服务状态 systemctl status firewalld 查看 firewall的状态 firewall-cmd --state 开启、重启、关闭 firewalld.service服务 # 开启 service firewalld start # 重启 serv 阅读全文
posted @ 2021-07-30 16:59 邈宇 阅读(47) 评论(0) 推荐(0)
摘要: 表user: + + + + + +| id | name | sex | age | score+ + + + + +| 1 | test1| 女 | 25 | 91.6+ + + + + +| 2 | test2| 男 | 26 | 91.4+ + + + + + 1、 运算 select id 阅读全文
posted @ 2021-04-06 18:51 邈宇 阅读(45) 评论(0) 推荐(0)
摘要: <div id="generateContainer"> <div class="content"> <div class="content-item gray title">基本信息</div> <div class="content-item"> <div class="label">属相</d 阅读全文
posted @ 2021-03-30 16:11 邈宇 阅读(191) 评论(0) 推荐(0)
摘要: $field = 'aunt_id,pay_time,out_trade_no,self_name,store_city,phone,bond_money,id_card_num'; $data = Db::table('aunt')->field($field)->select(); $head 阅读全文
posted @ 2021-03-26 15:11 邈宇 阅读(91) 评论(0) 推荐(0)
摘要: MySQL查询数据,使用IF来判断动态执行条件 格式IF(expression ,expr_true, expr_false); MySQL的IF()函数,接受三个表达式,如果第一个表达式为true,而不是零且不为NULL,它将返回第二个表达式。否则,它返回第三个表达式。根据使用它的上下文,它返回数 阅读全文
posted @ 2021-01-28 14:44 邈宇 阅读(3776) 评论(0) 推荐(0)