当前位置:网站首页>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?
边栏推荐
- Upgrade to heavyweight lock, lock reentrancy will lead to lock release?
- 三维坐标系距离
- 数据分析6
- XX市消防救援指挥中心实战指挥平台多链路聚合解决方案实例
- 【ASWC Arxml结构分解】-7-Explicit(显式)和Implicit(隐式) Sender-Receiver communication描述差异
- C语言学习概览(二)
- leetcode 42. 接雨水
- Summary of test points about app updates in different ways
- app 自动化 打开app (二)
- 力扣周赛304 6135. 图中的最长环 内向基环树
猜你喜欢

Golang: go get url and form attribute value

LabVIEW中局部变量和全局变量的分配

企业数据虚拟化综合指南

leetcode-6132:使数组中所有元素都等于零

国内外最顶级的8大plm项目管理系统

Prime Ring Problem

Redis 3.2.3 crashed by signal: 11 服务宕机问题排查
![[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?](/img/fb/c95c5857024db001638cd484c5e78f.png)
[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?

灵魂发问:MySQL是如何解决幻读的?

How to generate and configure public key certificate in Alipay
随机推荐
Golang: go open web service
网络基础学习
HoloView -- Tabular Datasets
LabVIEW RT中的用户界面更新速度
【MySQL】操作表DML相关语句
Redis learning
Microsoft Azure & NVIDIA IoT developers season I | Azure IoT & NVIDIA Jetson development foundation
pytest接口自动化测试框架 | parametrize源码解析
VSCode 快捷键及通用插件推荐
Redis学习
华为深度学习课程第六、七章
自定义IP在PCIE中使用
国内外最顶级的8大plm项目管理系统
22 Niu Ke Duo School 1 I. Chiitoitsu (Probability dp)
【STM32】入门(一):环境搭建、编译、下载、运行
app 自动化 通过工具查看app 元素 (三)
微信小程序请求封装
数据分析5
PHP获取时间戳后写数据库的一个问题
Monitor the width and height of the parent element, adapt to the size of the plug-in