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'].'


';