当前位置:网站首页>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?
边栏推荐
猜你喜欢
随机推荐
ogg同步oracle到mysql,字段里面可能有需要转义的字符,怎么配置转义?
Redis learning
云原生FAQ
请问用flinksql写入数据到clickhouse需要引入什么依赖吗?
Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
力扣周赛304 6135. 图中的最长环 内向基环树
VSCode插件推荐(Rust环境)
七夕来袭——属于程序员的浪漫
Pod环境变量和initContainer
HoloView -- Tabular Datasets
Chapters 6 and 7 of Huawei Deep Learning Course
搜索框字符自动补全
Redis学习
Summary of test points about app updates in different ways
Pod environment variables and initContainer
app 自动化 打开app (二)
nodetype中值1、2、3分别代表什么意思
The use of Golang: go template engine
小程序更多的手势事件(左右滑动、放大缩小、双击、长按)
GBase 8s 锁分类