location.href='comment_list.php'"; } else { echo "Error: " . $sql . "
" . $conn->error; } } // 查询所有评论 $sql = "select * from comments order by id desc"; $result = mysqli_query($conn, $sql); while ($row = mysqli_fetch_assoc($result)) { $sql = "select * from articles where id = '". $row['article_id']. "'"; $article_result = mysqli_query($conn, $sql); $article_row = mysqli_fetch_assoc($article_result); $article_title = $article_row["title"]; ?>
序号 文章 昵称 发布时间 内容 操作