Aaaaaaaaaaaahhhhhhhhhhhhh
I can't figure out how to get the results to display in a multi-column
table, no matter how I try to format things I still get just one big
long line of images and links...
Ideally I'd like to break the results into a 4x5 table...
-----------------------------------------------------------------------
$result = mysql_query($sql, $conn) or die(mysql_error());
// go through each row in the result set and display data
while ($newArray = mysql_fetch_array($result)) {
// give a name to each of the fields
$id = $newArray['ProductID'];
$producturl = $newArray['ProductURL'];
$artist = $newArray['Artist'];
$price = $newArray['Price'];
$imageurl = $newArray['ImageURL'];
$title = $newArray['Title'];
//echo the results onscreen
echo "<table width=\"100%\"><tr><td align=\"center\">$id<br><a
href=\"$producturl\">$title</a><br><a href=\"$producturl\"><img
src=\"$imageurl\" border=\"0\"></a></td></tr></table>";
}
?>
Thanks to anyone and everyone that is willing to help.
Don Bedford.
p ------------------------------------------------------ 9
| _ _ |
| / *-* ( ... Play guitar? |
| ( | (O) |=|=|=|=|=(:::} http://www.donnybravos.com |
| \_ .-._( ''' Take a peek! |
| |
b--------------------------------------------------------d