im trying to execute a while statement where the information is displayed in two columns no matter what. i will probably have a lot of information from the while statement, but i still want to keep the two column structure..
here's the code im using, but it doesnt seem to be working correctly:
while ($row = mysql_fetch_array($get_data)) {
$id = $row['id'];
$text = $row['text'];
list($width, $height, $type, $attr) = getimagesize("images/images/thumbs/".$row['image']."");
$image = "<img src='images/images/thumbs/".$row['image']."' $attr style='{border: solid #000000 1px}' alt='' />";
$display_block .= " <tr>
<td width='45%'>
$image
<span class='big'><a href='?id=$id'>$text</a></span>
</td>
<td width='10%'></td>
<td width='45%'>
$image
<span class='big'><a href='?id=$id'>$text</a></span>
</td>
</tr>
}
it retrieves the data fine, but it isn't in the format im looking for... i want it to be displayed like:
a b
c d
e f
g h
...
and on and on depending on how much data is retrieved