<!DOCTYPE html><html><head><meta charset="UTF-8"><title>管理员信息管理</title><<< ;?php include("guanli.php");?><h3>管理员信息显示</h3><table width="350" border="1" cellspacing="0">< tr><th>id</th><th>姓名</th><th>账号</th><th>密码</th><th><th>< ; </tr><?phpheader("content-type:text/html:charset=utf8");$conn=mysqli_connect("localhost","root","root","admin");mysqli_set_charset($ conn,"utf8");$sql_select="select * from user";foreach ($conn->query($sql_select) as $row){echo "<tr>";echo "<th>{$ row['id']}</th>";echo "<th>{$row['name']}</th>";echo "<th>{$row['acount'] }</th>";echo "<th>{$row['kata laluan']}</th>";echo "<th>{$row['createtime']}</th> ";echo "<td><a href='edit.php'>修改</a><a href='del.php'>删除</a><a href=' poss.php'>重置密码</a></td>"; echo "</tr>";}?></table></body></html>
Terdapat kod PHP di dalamnya, yang perlu dimasukkan ke dalam persekitaran apache untuk dikompilasi
Bolehkah fail php dibuka terus dalam penyemak imbas?
Ia sepatutnya bahawa fail php tidak dipanggil.