Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/smtp/admin/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/smtp/admin/edit_content.php

<?php

    include '../db/database.php';
    
    $content_id = $_POST['content_id'];
    $content = $_POST['content'];


    
    $sql = "UPDATE `content` SET  `content`='$content' WHERE (`content_id`='$content_id')";
    
    $result = mysqli_query($link, $sql);
    
    if ($result) {
       echo "<script>window.location='add_content.php?content_id=$content_id';</script>";
    } else {
       echo "<script>alert('เกิดข้อผิดผลาด ! ไม่สามารถแก้ไขข้อมูลได้');window.location='add_content.php?content_id=$content_id';</script>";
    }

Zerion Mini Shell 1.0