Exhibition
-
require_once("include/db_gallery2.php");
$call = new clsGallery();
$resultPage = $call->get_gallery_list_count();
$totalrow = mysql_num_rows($resultPage);
$pagesize = 8;
$totalpage = (int)($totalrow/$pagesize);
if(($totalrow%$pagesize)!=0){
$totalpage += 1;
}
if(isset($_GET['page'])){
$pageno = $_GET['page'];
$start = $pagesize*($_GET['page']-1);
}else{
$pageno = 1;
$start = 0;
}
$result = $call->get_gallery_list_limit($start,$pagesize);
if(mysql_num_rows($result)){
if($result){
$i=0;
while($row = mysql_fetch_array($result))
{
$txt_fileId = $row['fileId'];
$txt_fileTitle = $row['fileTitle'];
$txt_fileDesc = $row['fileDesc'];
$txt_fileActive = $row['fileActive'];
$txt_fileName = $row['fileName'];
$txt_galleryId = $row['galleryId'];
$txt_fileLink = $row['fileLink'];
$upddateBy = $row['upddateBy'];
$updateDate = $row['updateDate']; ?>