Browse Source

修复BUG

old
xiaoz 7 years ago
parent
commit
d2d92eb81b
  1. 4
      found.php

4
found.php

@ -6,8 +6,8 @@
include_once('tpl/header.php'); include_once('tpl/header.php');
//获取当前时间 //获取当前时间
$thetime = date('Y-m',time()); $thetime = date('Ym',time());
$query = "SELECT `id`,`dir` FROM `uploads` WHERE (`date` LIKE '%2018-01%') AND 'user' = 'user' ORDER BY random() LIMIT 10"; $query = "SELECT `id`,`dir` FROM `uploads` WHERE (`date` LIKE '%$thetime%') AND 'user' = 'user' ORDER BY random() LIMIT 10";
$datas = $database->query($query)->fetchAll(); $datas = $database->query($query)->fetchAll();
//print_r($datas); //print_r($datas);
//var_dump($datas); //var_dump($datas);

Loading…
Cancel
Save