Code: Select all
<?php
if ($totalRows_rsSection >0 && $pixID == ""){
if ($numOfCells ==1){
//echo "<br>";
echo '<table width="535" border="0" cellpadding="0" cellspacing="0">';
$numbOfRows = 1;
$numbCellsFilled = 1;
}
while($row_rsSection = mysql_fetch_assoc($rsSection)){
if ($numbOfRows == 1){
echo '<tr>';
$numbOfRows = 0;
}
$fileName = $row_rsSection["fileName"];
$location = $row_rsSection["path"];
$picID = $row_rsSection["imgID"];
$sectID = $row_rsSection["sectionID"];
if ($numbCellsFilled <= 3){
createThumbNail($picID, $self, $sectID, $location, $fileName);
$numbCellsFilled++;
}
elseif($numbCellsFilled ==4){
createThumbNail($picID, $self, $sectID, $location, $fileName);
echo '</tr>';
$numbCellsFilled = 1;
$numbOfRows = 1;
}
$numPicsID = array($picID);
}
foreach($numPicsID as $value){
echo "num pics ID: ".$value."<br>";
}
echo '</table>';
}
?>ljCharlie