<?php require_once('../auth/auth.php'); ?>
<?php
if (isset($_POST['newsmstampid'])) {
    $newsmstampid      =  $_POST['newsmstampid'];
    $type              =  $_POST['type'];
    $smstext_body      =  $_POST['smstext_body'];
    
    mysqli_query($conn,"UPDATE sms_tamp_all SET smstext='$smstext_body' WHERE coid='$coid' AND bid='$bid' AND brid='$brid'  AND sta_id ='$newsmstampid' AND type ='$type'") or die(mysqli_error($conn));

}
?>