为什么连上了数据库,PHP运行页面还是出不来数据库里的表格呢

img

$sql = "select * from t_stu";
$result = mysqli_query($conn,$sql);
echo "

";
while ( $row = mysqli_fetch_array($result)) {
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
}
echo "
序号名字年龄状态操作
".$row[0]."".$row[1]."".$row[2]."".$row[3]."https://ask.csdn.net/new?utm_source=a_release#    https://ask.csdn.net/new?utm_source=a_release#
";

mysqli_close($conn);

这个需要进行拼接得你这样输出直接就是字符串 或者你试下{{}}不行得话就得按照下面得拼接

 "<td>".$row['id']."</td>"  ;

网页端F12调试下看看有没有数据