Archive Gallery
'; $colCount = 1; for($i=0;$i<$numImages;$i++) { if($arrayCells2[$array2count] && file_exists("uploads/galleryImages/image".$arrayCells2[$array2count]."c.jpg") && file_exists("uploads/galleryImages/image".$arrayCells2[$array2count]."b.jpg") && file_exists("uploads/galleryImages/image".$arrayCells2[$array2count]."a.jpg")) { echo ''; echo ''; echo ''; ?> '; #} ?> '; $strSQL = "SELECT carID FROM tblCars WHERE listOrder < ".$listOrder." ORDER BY listOrder DESC LIMIT 1"; $result = mysql_query($strSQL) or die("Invalid query: ".mysql_error()); if(mysql_num_rows($result) > 0) { $objRS = mysql_fetch_array($result); ?> #gallery" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('PreviousCar','','assets/but-previous-car.gif',1)">Previous Car ".$listOrder." ORDER BY listOrder ASC LIMIT 1"; $result = mysql_query($strSQL) or die("Invalid query: ".mysql_error()); if(mysql_num_rows($result) > 0) { $objRS = mysql_fetch_array($result); ?> #gallery" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NextCar','','assets/but-next-car.gif',1)" id="next">Next Car '; ?>