php book crashes ie6


the formula next crashes ie6 reason. many ie god-awful, i have never seen before. does anyone have any ideas?



<div id="edit">
<?php

$a = $_post['category'];
if ($a == "")
{
$a = $_get['category'];
}

$result = mysql_query("select * media where related_page_id = $a && type= 'copy'");

?>

<table width="460px;">
<tr>
<td>item</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>associated images</td>
</tr>
<tr>
<td colspan="5">&nbsp;</td>
</tr>
<?php
while($row = mysql_fetch_array($result))
{
relate "<tr style='vertical-align:top'><td>$row[title]</td>";
relate "<td><a href='addimage.php?id=$row[id]&&category=$a'>add image/file</a>";
relate "<td><a href='change.php?id=$row[id]&&category=$a'>edit</a></td>";
relate "<td><a href='delete.php?id=$row[id]&&category=$a'>delete</a></td>";
relate "<td>";

$id = $row['id'];
$result1 = mysql_query("select * media where resources = $id");
while($row1 = mysql_fetch_array($result1))
{
relate "<a href='$row1[path]'>$row1[title]</a> | <a href='delete.php?id=$row1[id]&&category=$a'>remove?</a><br />";
}
relate "</td></tr>";
}
if($a == 1 || $a == 3 || $a == 5){
}else{
relate "<tr><td colspan='5'>&nbsp;</td></tr>";
relate "<tr><td colspan='5'><a href='change.php?id=0&&category=$a'>new item</a></td></tr>";
}

?>
</div>
</div>
</div>
</table>
</body>
</html>


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?