From db0bffde0bb0dabd6f6e9544b73df2db4d5afe28 Mon Sep 17 00:00:00 2001 From: IoTcat Date: Wed, 20 Mar 2019 18:10:40 +0800 Subject: [PATCH] =?UTF-8?q?acg.watch=20acg=20=E9=9A=8F=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/cn/home/www/video/acg.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/cn/home/www/video/acg.php b/server/cn/home/www/video/acg.php index 2306405..57c65cf 100644 --- a/server/cn/home/www/video/acg.php +++ b/server/cn/home/www/video/acg.php @@ -15,10 +15,10 @@ $class=$_GET['class']; -$sql = "SELECT * FROM videoIndx where class=$class"; +//$sql = "SELECT * FROM videoIndx where class=$class"; -$result = $conn->query($sql); +$result = db__getData($conn, "videoIndx", "class", $class) ?> @@ -83,9 +83,10 @@ function array_orderby()

Share video with the one you love!

num_rows > 0) { +if (count($result) > 0) { // 输出数据 - while($row = $result->fetch_assoc()) { + shuffle($result); + foreach($result as $row) { echo '

' . $row['series'].'

'.$row['comment'].'


';