search
HomePHP FrameworkThinkPHPSolve the problem of A non well formed numeric value encountered in TP5.1

The following tutorial column will introduce to you how to solve the problem of A non well formed numeric value encountered in TP5.1. I hope it will be helpful to friends in need!

A non well formed numeric value encountered problem occurred in TP5.1

Solve the problem of A non well formed numeric value encountered in TP5.1

Blog description

The information involved in the article comes from the Internet and personal summary. It is intended to summarize personal learning and experience. If there is any infringement, please contact me to delete it. Thank you! Problem introduction

A non well formed numeric value encountered

Such a problem is caused by the failure of tp5.1 to automatically convert the time formatFor example, the fields in the database are in varchar format, and the code is written in tp5.1. The field is automatically converted into the timestamp format, and an error will occur.

Problem Solution

Use time fields in the database, or use int type, or not use the automatic conversion of tp5.1

Related recommendations:
Latest 10 thinkphp video tutorial

The above is the detailed content of Solve the problem of A non well formed numeric value encountered in TP5.1. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)