当前位置:网站首页>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?
边栏推荐
猜你喜欢
随机推荐
Leicester Weekly 304 6135. The longest ring in the picture Inward base ring tree
数据分析6
扁平数组转树结构实现方式
套接字选项
优炫数据库支持Oracle哪几种时间及日期类型
基于MySql,Redis,Mq,ES的高可用方案解析
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
leetcode-6132: Make all elements in array equal to zero
How to generate and configure public key certificate in Alipay
pytest接口自动化测试框架 | parametrize叠加使用
leetcode-6133: maximum number of groupings
【Unity3D】相机
云原生FAQ
Graduation thesis writing skills
LabVIEW RT中的用户界面更新速度
Mysql数据库的部署以及初始化步骤
HoloView -- Tabular Datasets
pytest interface automation testing framework | pass in parameter values in the form of function return values
VoLTE Basic Learning Series | Enterprise Voice Network Brief
案例实践 --- Resnet经典卷积神经网络(Mindspore)









