各位DX帮忙,多谢

Filtron 2004-08-02 10:37:02
$mon1=$mon+1;
$timestart = strtotime ("1 ".$mon." 2004 00:00:00");
$timeend = strtotime ("1 ".$mon1." 2004 00:00:00");

$msql->query("select * from member where site='$uid' and ifok='1' and daytime>='$timestart' and daytime<'$timeend'");





echo $timestart竟然等于-1,是怎么回事啊?
...全文
45 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuxz 2004-08-03
  • 打赏
  • 举报
回复
你用strtotime有错误:
$mon 要用英文的月分 如August ,September

例如;
$mon = "August";
$str ="1 ".$mon." 2004 00:00:00";
$timestamp = strtotime($str);

xuzuning 2004-08-03
  • 打赏
  • 举报
回复
没有那样的日期格式,strtotime不认得

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧