include_once('include/config.php');
include_once('include/connect2.php');
include_once('include/function.php');
$album_id =$_GET['album_id'];
?>
คณะอักษรศาสตร์ จุฬาลงกรณ์มหาวิทยาลัย
//php include ('inc/inc_layerslide.php'); ?>
$path1 = "files/gallery1/";
$sql1 = "SELECT * FROM m_gallery1_album where gallery1_album_status=$album_id";
$rs1 = $conn->Execute($sql1);
$gallery1_album_title_th =$rs1->fields["gallery1_album_title_th"];
$gallery1_album_title_en = $rs1->fields["gallery1_album_title_en"];
$gallery1_album_desc_th = $rs1->fields["gallery1_album_desc_th"];
$gallery1_album_desc_en = $rs1->fields["gallery1_album_desc_en"];
if($gallery1_album_pic!=""){
$gallery1_album_pic_p = $path1.$gallery1_album_pic;
}
?>
$sql2 = "select * from m_gallery1 where gallery1_album=$album_id and gallery1_status=1";
$rs2 = $conn->Execute($sql2);
while (!$rs2->EOF) {
$gallery1_pic =$rs2->fields["gallery1_pic"];
$gallery1_title_th =$rs2->fields["gallery1_title_th"];
$gallery1_title_en = $rs2->fields["gallery1_title_en"];
if($gallery1_pic!=""){
$gallery1_pic_p = $path1.$gallery1_pic;
}
?>
-
$rs2->MoveNext();
}
?>