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"];
?>
|
|
|
|
|
|