I'm quite new to PHP and I'm looking to have a ID pulled from my Database to show a Image in a table and have it alternate in each column.
Right now I have the following.
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="white">
<tr bgcolor="#CCCCCC" align="center">
<td width="36%"><h4>Image</h4></td>
</tr>
<?php
$query = "SELECT * FROM retail_achievements WHERE game_id = '$gameID' && achievement_locked = '0' ORDER BY achievement_id ASC";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result)) { // Start looping table row
$gameID = $row['game_id'];
$achievementID = $row['achievement_id'];
?>
<tr align="center" bgcolor="#eeeeee">
<td> <img src="images/achievements/<?php echo $gameID; ?>/<?php echo $achievementID; ?>.jpg" /> </td> </tr>
<?php
} // end of while loop
?>
</table>
This will display the images one by one but I would like side by side.
Thanks for any help!