Basically, I am trying to have fetched database images and info displayed across rows of a table instead of straight down one column of a row the way the code is now. I've tried using an <ul>, but that didn't work. I think it has something to do with the way the print function works, but I can't seem to figure it out. I also thought it had something to do with the $list function, but I don't know what to replace it with. I believe that $x is the row and $k is the column even though it doesn't show $k.
Please help....Thank you.
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<?php
$x = 0;
while($list = mysql_fetch_array($result[result])){
?>
<?php $array = $list[pPhoto] ? $db->scalePhoto($list[pPhotoWidth], $list[pPhotoHeight]) : array("width" => "75", "height" => "75"); ?>
<tr>
<td width="197" valign="top"><a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $list[pID]; ?>"><img src="<?php print $db->productIMGurl; ?>/<?php $list[pPhoto] ? print $list[pPhoto] : print "na.gif"; ?>" width=<?php print $array[width]; ?> height=<?php print $array[height]; ?> border=0></a>
</td>
<td width="197" valign="top"></td>
<td width="197" valign="top"></td>
</tr>
<?php
$x++;
}
?>
</table>