GIF89a
<?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;
?>