i been working on a script that displays data from an on the fly created text file
i was wondering if there is a way to replace text from one of the fields with images
<html>
<head>
<title>New Page 1</title>
</head>
<body link="#C4AE7B" vlink="#C4AE7B" alink="#C4AE7B" bgcolor="#000000" text="#C4AE7B">
<table border="1" width="300" bordercolorlight="#C4AE7B" bordercolordark="#C4AE7B" cellspacing="1" bgcolor="#000000">
<tr>
<td>Roomname</td>
<td width="70" align="center">Users</td>
<td width="70" align="center">Type</td>
</tr>
</table>
<table border="0" width="300" height="30">
<tr>
<td></td>
</tr>
</table>
</body>
</html>
<?
$readfile = file("../voos/rooms.txt");
for ($k=0; $k<=count($readfile)-1; $k++) {
$fields = split("t",$readfile[$k]);
$roomname=$fields[1];
$url=$fields[2];
$count=$fields[3];
$type=$fields[6];
echo "<table width="300" border="1" bordercolorlight="#C4AE7B"bordercolordark="#C4AE7B"cellspacing="1" cellpadding="1"><tr>
<td ><a href="$url" target="_none">$roomname</a></td>
<td width="70" align="center">$count</td>
<td width="70" align="center">$type</td></tr>";
i have an image for each result but im not sure how to swap them ?