大家好,我是新手,我正在尝试制作一个简单的动态 HTML。我已经编写了以下代码,但似乎不起作用。有人能帮我吗。因为我得到的只是以下行
$row[name]"); echo (""); echo (""); echo (""); echo (""); } ?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table>
<tr>
<td align="center">EDIT DATA</td>
</tr>
<tr>
<td>
<table border="1">
<?
mysql_connect("localhost","user","pass");
mysql_select_db("Computers");
$order = "SELECT * FROM vnc";
$result = mysql_query($order);
while ($row=mysql_fetch_array($result)){
echo ("<td>$row[name]</td>");
echo ("<td>$row[department]</td>");
echo ("<td>$row[phone]</td>");
echo ("<td>$row[ip]</td>");
echo ("<td><a href="edit_form.php?id=$row[id]">Edit</a></td></tr>");
}
?>
</table>
</td>
</tr>
</table>
</body>
</html>
先感谢您