当前位置:网站首页>A problem with writing to the database after PHP gets the timestamp
A problem with writing to the database after PHP gets the timestamp
2022-08-01 08:24:00 【CSDN Q&A】
Use $now_time=time(); in PHP to get the timestamp of the current time, and then pass $sql="UPDATE login_user SET first_logintime='".$now_time."' WHERE username='".$username."' AND pwd='".password."'; When writing to the database, I found that it could not be written. I thought that the timestamp could not be obtained. After I output it with echo after $now_time, I found that the writing was successful.When this happens? How can I write it to the database without outputting it?
边栏推荐
猜你喜欢
随机推荐
13 - JUC CountDownLatch concurrent programming
POJ2421道路建设题解
七夕来袭——属于程序员的浪漫
TiDB的真实数据库数据是存在kv和还是pd上?
179. 最大数
GBase 8s 锁分类
22 Niu Ke Duo School 1 I. Chiitoitsu (Probability dp)
GBase 8c中怎么查询数据库配置参数,例如datestyle
HoloView--Customization
静态Pod、Pod创建流程、容器资源限制
基于MySql,Redis,Mq,ES的高可用方案解析
Golang: go open web service
various network protocols
pytest接口自动化测试框架 | 跳过模块
国内外最顶级的8大plm项目管理系统
nodetype中值1、2、3分别代表什么意思
leetcode-6134: Find the closest node to the given two nodes
pytest接口自动化测试框架 | parametrize源码解析
搜索框字符自动补全
gethostbyname \ getaddrinfo 解析域名IP地址不安全的原因








