IF(language = PHP) {
This is a really good bit of code i got from someone here,
what it does is display the results of a recordset horizontally, i
used it for displaying thumbnails, with some modification you could
probably make it work how you want. The $cols variable sets the
number of columns per row. Substitute your recordset and change the
variables and it should work
//START CODE BLOCK
$picturelocsql = "SELECT images.img_id, images.description,
images.name, images.location, images.upload_date, albums.album_name
FROM images, albums WHERE albums.id = images.album_id AND user_id =
" . $_SESSION['SESS_USERID'] . " ORDER BY location ASC;";
$picturelocres = mysql_query($picturelocsql);
echo "<table cellpadding='10'><tr>";
$pos = 0;
$cols = 3;
while ($picloc = mysql_fetch_assoc($picturelocres)) {
$pos++;
$mainpic .= "<td><a href='imageview.php?picid=" .
$picloc['img_id'] . "'><img src='pics/" . $picloc['name'] .
"' alt='" . stripslashes($picloc['description']) . "... Date: " .
date("D F jS, Y", strtotime($picloc['upload_date'])) .
"'></a><br />Album: " . $picloc['album_name'] .
"</td>";//this is the part you would mod to display your way
if ($pos%$cols === 0 && is_array($picloc)) {
$mainpic .= '</tr><tr>';
}
}
while ($pos%$cols) {
$mainpic .= '<td> </td>';
$pos++;
}
echo $mainpic;
echo "</tr></table>";
}
//END CODE BLOCK
} else {
try something similar in your language
}