当前位置:网站首页>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?
边栏推荐
猜你喜欢
C语言中编译时出现警告C4013(C语言不加函数原型产生的潜在错误)
Chapters 6 and 7 of Huawei Deep Learning Course
Data Analysis 6
网络个各种协议
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
special day to remember
【编程之外】当遮羞布被掀开,当人们开始接受一切
VoLTE Basic Learning Series | Enterprise Voice Network Brief
JVM 运行时数据区与JMM 内存模型详解
The use of Golang: go template engine
随机推荐
Delphi MDI appliction 文档最大化显示、去掉最大化最小化等按钮
pytest interface automation testing framework | parametrize source code analysis
POJ2031空间站题解
Custom IP used in PCIE
正则表达式符号
leetcode-6132:使数组中所有元素都等于零
Data Analysis 5
如何保证数据库与缓存数据一致性?
将aof文件转换为命令waoffle安装和使用
【Unity3D】相机
TiDB的真实数据库数据是存在kv和还是pd上?
special day to remember
GBase 8c中怎么查询数据库配置参数,例如datestyle
HoloView--live data
13 - JUC CountDownLatch concurrent programming
云原生FAQ
HoloView -- Tabular Datasets
SaaS安全认证综合指南
The use of Golang: go template engine
国内外最顶级的8大plm项目管理系统