Server IP : 10.254.12.21 / Your IP : 10.254.12.21 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/arit/igallery/admin/pages/ |
Upload File : |
<?ob_start();?> <?php include 'check_mode_admin.php';?> <?php include 'dbconnect.php';?> <?php //include 'header.php';?> <?php if (check_mode_admin_session(1,1)) { ?> <?php if ($_POST["submit"]) { if ($_POST["gallery_id"]) { $gallery_id = $_POST['gallery_id']; //$strKeyword=$_POST['txtKeyword']; $page=$_POST['Page']; //$donate_list=$_POST['donate_list']; $sql = "SELECT * FROM gallery WHERE gallery_id=" . $gallery_id; $query = mysqli_query($conn,$sql); if($result=mysqli_fetch_array($query,MYSQLI_ASSOC)) { $sql = "UPDATE gallery "; $sql .= "SET gallery_name='" . $_POST["gallery_name"] . "',"; $sql .= "gallery_name_eng='" . $_POST["gallery_name_eng"] . "',"; $sql .= "exhibition_type_id=" . $_POST["exhibition_type_id"] . ","; $sql .= "gallery_detail='" . $_POST["gallery_detail"] . "',"; $sql .= "gallery_detail_eng='" . $_POST["gallery_detail_eng"] . "',"; $sql .= "gallery_url='" . $_POST["gallery_url"] . "',"; $sql .= "gallery_date='" . $_POST["gallery_date"] . "' "; $sql .= " WHERE gallery_id=" . $gallery_id; $query = mysqli_query($conn,$sql); if($query) { echo "บันทึกข้อมูลเรียบร้อยแล้ว<BR><BR>"; //$redirect_url = "donate_detail.php?donate_detail_id=" . $donate_detail_id; $redirect_url = "gallery_detail.php?id=" . $gallery_id . "&Page=" . $page; /*if ($strKeyword<>"") { $redirect_url .= "&txtKeyword=" . $strKeyword; } if ($page<>"") { $redirect_url .= "&Page=" . $page; } if ($donate_list<>"") { $redirect_url .= "&donate_list=" . $donate_list; } */ header("location:$redirect_url"); } else { echo "ไม่สามารถบันทึกข้อมูลได้<BR><BR>"; } } else { echo "ไม่พบรายการที่เลือก<BR>"; } } else { echo "ไม่พบรายการที่เลือก<BR>"; } } //if ($_POST["submit"]) ?> <?php } //if(check_mode_admin_session(1,1)) { ?> <?php //include 'footer.php';?>