Winterz
08-17-2006, 05:18 PM
Hi there, i have a code here for showing my members name and Last name with their Photos.
<?php
include ($INCLUDE_ROOT."config.php");
$id = $_GET['id'];
$member = mysql_query("SELECT * FROM `Members` ORDER BY `FName` ASC");
while($getMember = mysql_fetch_array($member))
{
$did = $getMember["id"];
$FName = $getMember["FName"];
$LName= $getMember["LName"];
$url = "img/photos/"; // date
$photo= $getMember["photo"];
echo ("<img src=\"$url$photo\" alt=\"photo: $FName\"><br><span align=\"center\"> $FName $LName</span><br><br>");
if($session->isAdmin()){
echo ("<br><br>[<a href=\"?a=contents/Admin&view=editmain\"> Edit </a>]");
}
?>
Its working, its just that the output is arranged from top to bottom, is there a way i can make this from left to right with a maximum of 5 photos in each row.
Thanks,
Winterz
<?php
include ($INCLUDE_ROOT."config.php");
$id = $_GET['id'];
$member = mysql_query("SELECT * FROM `Members` ORDER BY `FName` ASC");
while($getMember = mysql_fetch_array($member))
{
$did = $getMember["id"];
$FName = $getMember["FName"];
$LName= $getMember["LName"];
$url = "img/photos/"; // date
$photo= $getMember["photo"];
echo ("<img src=\"$url$photo\" alt=\"photo: $FName\"><br><span align=\"center\"> $FName $LName</span><br><br>");
if($session->isAdmin()){
echo ("<br><br>[<a href=\"?a=contents/Admin&view=editmain\"> Edit </a>]");
}
?>
Its working, its just that the output is arranged from top to bottom, is there a way i can make this from left to right with a maximum of 5 photos in each row.
Thanks,
Winterz