当前位置:网站首页>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?
边栏推荐
- 【编程之外】当遮羞布被掀开,当人们开始接受一切
- pytest接口自动化测试框架 | 使用函数返回值的形式传入参数值
- 灵魂发问:MySQL是如何解决幻读的?
- pytest interface automation testing framework | single/multiple parameters
- leetcode-6134: Find the closest node to the given two nodes
- 优炫数据库支持Oracle哪几种时间及日期类型
- Delphi MDI appliction 文档最大化显示、去掉最大化最小化等按钮
- Prime Ring Problem
- 研发过程中的文档管理与工具
- 22 Niu Ke Duo School 1 I. Chiitoitsu (Probability dp)
猜你喜欢

Redis learning

How to use Photoshop to composite star trail photos, post-processing method of night sky star trail photos

leetcode-6133:分组的最大数量

leetcode-6134: Find the closest node to the given two nodes

研发过程中的文档管理与工具

Golang: go static file processing

HoloView--live data

VoLTE基础学习系列 | 企业语音网简述

【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?

LevelSequence源码分析
随机推荐
Delphi MDI appliction 文档最大化显示、去掉最大化最小化等按钮
22牛客多校1 I. Chiitoitsu (概率dp)
special day to remember
app 自动化 通过工具查看app 元素 (三)
sql server, FULL模式, dbcc shrinkfile(2,1) 不能收缩事务日志,还是原来的大小,是为什么?
小程序全面屏手势配置案例
灵魂发问:MySQL是如何解决幻读的?
HoloView--Customization
ACmix 论文精读,并解析其模型结构
华为深度学习课程第九章——卷积神经网络以及案例实践
Do I need to introduce any dependencies to write data to clickhouse using flinksql?
13 - JUC CountDownLatch concurrent programming
Redis 3.2.3 crashed by signal: 11 服务宕机问题排查
codeforces每日5题(均1600)-第二十七天
Gethostbyname \ getaddrinfo DNS domain name IP address is not safe
[Beyond programming] When the fig leaf is lifted, when people begin to accept everything
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
扁平数组转树结构实现方式
LevelSequence源码分析
22 Niu Ke Duo School 1 I. Chiitoitsu (Probability dp)