您的位置 首页 php

解决TP5.1出现A non well formed numeric value encountered的问题

下面由thinkphp教程栏目给大家介绍解决TP5.1出现A non well formed numeric value encountered的问题,希望对需要的朋友有所帮助!

TP5.1出现A non well formed numeric value encountered问题

博客说明

文章所涉及的资料来自互联网整理和个人总结,意在于个人学习和经验汇总,如有什么地方侵权,请联系本人删除,谢谢!

问题介绍

A non well formed numeric value encountered

出现这样的问题是tp5.1自动转化时间格式失败出现的问题

比如在数据库里面的字段是varchar格式的,在tp5.1里代码又是写的该字段是自动转化时间戳格式的,就会出错

问题解决

在数据库中使用时间类的字段,或者使用int类型,或者不使用tp5.1的自动转化

相关推荐:最新的10个thinkphp视频教程

文章来源:智云一二三科技

文章标题:解决TP5.1出现A non well formed numeric value encountered的问题

文章地址:https://www.zhihuclub.com/25197.shtml

关于作者: 智云科技

热门文章

网站地图