当前位置:网站首页>PHP获取时间戳后写数据库的一个问题
PHP获取时间戳后写数据库的一个问题
2022-08-01 08:18:00 【CSDN问答】
在PHP中使用$now_time=time();获取当前时间的时间戳,然后再通过$sql="UPDATE login_user SET first_logintime='".$now_time."' WHERE username='".$username."' AND pwd='".password."';写入数据库,发现写入不了,以为是时间戳获取不了,我在$now_time后用echo输出了一下后,发现写入成功了,为啥会出现这样的情况?怎样可以不用输出它就能写入数据库?
边栏推荐
猜你喜欢
随机推荐
Case practice --- Resnet classic convolutional neural network (Mindspore)
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
Microsoft Azure & NVIDIA IoT developers season I | Azure IoT & NVIDIA Jetson development foundation
企业数据虚拟化综合指南
Self-made a remote control software - VeryControl
C语言学习概览(二)
【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?
flink sql-client,怎么处理源端与目标增加端,sql-client包括映射表与JOB如
将aof文件转换为命令waoffle安装和使用
LabVIEW RT中的用户界面更新速度
LevelSequence源码分析
leetcode-6132:使数组中所有元素都等于零
pytest interface automation testing framework | single/multiple parameters
Summary of test points about app updates in different ways
根据指定区域内容生成图片并进行分享总结
网络基础学习
Delphi MDI appliction documents maximize display, remove buttons such as maximize and minimize
GO error handling
七夕来袭——属于程序员的浪漫
自制一款远程控制软件——VeryControl