输入banner图图片脚本导航/分类

mysql 时间戳

      // 时间为当前是日期
      $date = strtotime(date(‘Y-m-d‘,time()));
      //dd($date);
      //UNIX_TIMESTAMP(‘2006-11-04 12:23:00‘);
      $where = "DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘) = DATE_FORMAT(NOW(),‘%Y-%m-%d‘)";
      $where = "UNIX_TIMESTAMP(DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘)) = $date";

mysql 时间戳

标签:time()   nbsp   时间戳   form   create   rom   date   time   mysql