<div class="border comMap">
<section class="history"> </section>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cyclist's Adventure</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section class ="history">
<?php
$proflie= mysqli_connect("localhost","dbExample","deco18007180","webpage_data")
$sql= "SELECT * FROM 'trail'";
$result = mysqli_query($proflie, $sql)
while ($row = mysqli_fetch_assoc($result)) {
echo "
<section class='history'>
<h3>'.$row['trail_id'].'<h3><br>
<h3>'.$row['map_plug'].'<h3><br>
</section>";
}
?>
</section>
</body>
</html>
但是结果为空。
确认返回的数据 是不是有值