query($query)->fetchAll(); //print_r($datas); //var_dump($datas); //var_dump( $database->log() ); //$datas = $database->select("uploads",[ // "id", // "dir" //],[ // "ORDER" => "random()", // "LIMIT" => 10, // "date[~]" => $thetime, // "user" => 'user' //]); //var_dump( $database->log() ); $num = $database->count("uploads",["date[~]" => $thetime]); //如果图片大于10张 if($num > 10){ $num = 10; } //print_r($datas); ?>
"."$imgdir"; ?> |