GIF89a php
Current File : /home/drbalajibabycent/public_html/Admin-Panel/edit19.php
<?php

include 'db.php';
$statusMsg = '';

if(isset($_POST["submit"])){
    
    $namez=$_POST['name'];  
    $name=str_replace("'","\'",$namez);
   
    $insert = $db->query("INSERT into p19 (name) VALUES ('".$name."')");
            if($insert){
                 $redirectUrl = 'Add-reviews.php';

    echo '<script type="application/javascript">alert("Registered"); window.location.href = "'.$redirectUrl.'";</script>';
            }else{
                $statusMsg = "File upload failed, please try again.";
            } 
       
}
echo $statusMsg;
?>