当前位置:网站首页>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输出了一下后,发现写入成功了,为啥会出现这样的情况?怎样可以不用输出它就能写入数据库?
边栏推荐
猜你喜欢
随机推荐
JVM内存模型之深究模型特征
Leetcode - 6135: the longest part of the figure
HoloView -- Tabular Datasets
聊一聊ICMP协议以及ping的过程
22牛客多校1 C.Grab the Seat (几何 + 暴力)
pytest接口自动化测试框架 | parametrize叠加使用
网络基础学习
POJ1287联网题解
HoloView--live data
Image lossless compression software which works: try completely free JPG - C image batch finishing compression reduces weight tools | latest JPG batch dressing tools download
pytest interface automation testing framework | parametrize source code analysis
VSCode插件推荐(Rust环境)
并发编程13-JUC之CountDownLatch
leetcode-6133:分组的最大数量
pytest interface automation testing framework | single/multiple parameters
C语言中编译时出现警告C4013(C语言不加函数原型产生的潜在错误)
网络个各种协议
leetcode-6132:使数组中所有元素都等于零
POJ2031空间站题解
leetcode-6134: Find the closest node to the given two nodes








