-5
这是我的代码未定义指数:图像3
<form action = "#" method = "POST">
<?php
$am=$_GET["am"];
$res=mysql_query("select * from blotterreport where subject like('$am%')");
echo "<table border='1'>";
while ($row=mysql_fetch_array($res)) {
echo "<tr>";
echo "<td>"; echo $row["entrynumber"]; echo"</td>";
echo "<td>"; echo $row["natureofcase"]; echo"</td>";
echo "<td>"; echo $row["month"]; echo"</td>";
echo "<td>"; echo $row["subject"]; echo"</td>";
echo "<td>"; echo $row["<image src=view.png onclick= width=100% height=5%/>"]; echo"</td>"; /**this is the undefined index**/
echo "<td>"; echo $row["<image src=edit.png onclick= width=100% height=5%/>"]; echo"</td>"; /**this is the undefined index**/
echo "</tr>";
}
?>
</form>
只要看看那一行,很明显它为什么不起作用。并请妥善格式化您的代码 –
为什么要将整个图像标记添加为$ row索引? –