//get photo sum
$photoSum = GetPhotoSum($db);
//if no photos, display no photos message.
if($photoSum == 0){
echo '| No Photos!! | ';
} else {
//If have, get all photos
$photoList = GetAllPhoto($db);
$index=0;
while($index";
//change row by 5 photos
for($i=0;$i<5;$i++)
{ //check photo delete_flag is not 'Y'
if ($photoList[$index+$i]["DELETE_FLAG"]<>"Y")
{
if ($index+$i < $photoSum){
//dispaly photos
echo ''
.''
.' '
.''
.' '.nl2br($photoList[$index+$i]["TITLE"])
.' | ';
} else {
echo '
| ';
}
}
}
echo "";
$index=$index+5;
}
}
?>
|
|
|