Hello php gurus… I am new in html and php. My problem is about how to put an image in a table. Actually i was able to put it in a table but the problem here is the order of it in the table since i cannot put the second image in the second row instead it goes side by side with the first image every row. Sorry for my english.
Any help would be greatly appreciated.
[php]
//READ ALL POSTS
$records = read_(0);
?>
<table style="width:100%; border: 1px solid #b7ddf2; background-color: black;">
<tr style='background-color: #A00000; height: 30px;'>
<th>Team</th>
<th>vs</th>
<th>Team</th>
<th>Date</th>
<th>Venue</th>
<th>Channel</th>
<th width='100px'></th>
</tr>
<?php
$count=0;
$style1="style= 'background-color: blue'";
$style2="style= 'background-color: blue'";
//DISPLAY ALL POSTS
while ($record = mysql_fetch_array($records)) {
if ($count%2==0)
$style = $style1;
else
$style = $style2;
echo "<tr $style>";
echo "<td><image src ='heat logo.jpg'/> <image src ='heat logo2.jpg'/></td>"; //problem here
echo "<td width ='30px'></td>";
echo "<td width ='160px'><img src ='knicks logo.jpg'/></td>";
echo "<td>".$record['date']."</td>";
echo "<td>".$record['venue']."</td>";
echo "<td>".$record['channel']."</td>";
echo "<td width='120px'><a href='edit.php?id=".$record["id"]."' class='button2'>edit</a> <a href='delete.php?id=".$record["id"]."' class='button2'>delete</a> </td>";
echo "</tr>";
$count++;
}
?>
</table>
[/php]