<table>
<tr>
<th>id</th>
+ <th>type</th>
<th>path</th>
</tr>
<?php
-$res = mysql_query("select id,path from file where type='page'");
-while (list($id,$path)=mysql_fetch_row($res)) {
+$res = mysql_query("select id,path,type from file");
+while (list($id,$path,$type)=mysql_fetch_row($res)) {
?>
-<tr>
+<tr<?php if ($type=="dead") echo ' bgcolor="red"'; ?>>
<td><?php echo $id; ?></td>
+ <td><?php echo $type; ?></td>
<td><a href="file.php?id=<?php echo $id; ?>"><?php echo $path; ?></a></td>
</tr>
<?php