Photo Gallery: Item Values
Put Values Into Arrays for Each DATABASE Row
if ($PriorGroup != $SQL->{$Order}) {
$PriorGroup = $SQL->{$Order};
$Color = 1 - ($Color % 2);
$Group[] = " <td align=\"center\" class=\"group$Color\">"
. "{$OrderText} {$SQL->{$Order}}</td>";
} else {
$Group[] = " <td align=\"center\" class=\"group$Color\"> </td>"
}
$Img[] = " <td align=\"center\" class=\"img$Color\">"
. "<a href=\"view.php?PhotoID=$SQL->PhotoID\">"
. "<img src=\"thumb/$SQL->PhotoID.jpg\" "
. "alt=\"$SQL->Caption\" "
. 'class="img" border="0" /></a></td>';
$Caption[] = " <td align=\"center\" class=\"caption$Color\">"
. "<small class=\"caption\">$SQL->Caption</small></td>";
Echo Arrays At End of DISPLAY Row
if ($ColCount == $ThumbCols) {
echo "\n <tr valign=\"top\" class=\"group\">\n";
echo implode("\n", $Group);
echo "\n </tr>\n";
echo " <tr valign=\"top\" class=\"img\">\n";
echo implode("\n", $Img);
echo "\n </tr>\n";
echo " <tr valign=\"top\" class=\"caption\">\n";
echo implode("\n", $Caption);
echo "\n </tr>\n";
$ColCount = 0;
}