发布于: connect_error) { die("连接失败: " . $conn->connect_error); } $sql = "SELECT * FROM bug where name='$name5'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // 输出数据 while($row = $result->fetch_assoc()) { $detail=$row['detail']; $starttime=$row['starttime']; $hosttime=$row['hosttime']; } } else { echo "0 结果"; } echo $starttime; echo "领养于:"; echo $hosttime; echo ""; echo "详细信息:"; echo ""; echo $detail; echo ""; echo ""; $conn->close(); ?>