无法通过php用HTML文件显示mysql中表格的数据
<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>
上面是我的html文件 下面是我的php文件 我想要在section history里面输出php得到mysql中的数据 我确认过mysql的目录和用户都是正确的。
但是结果为空。