ok
Direktori : /home/keydecors/public_html/ca/admin/app/controller/ |
Current File : /home/keydecors/public_html/ca/admin/app/controller/blog_back.php |
<?php //include database configuration file include("../model/dboperation.php"); $title = mysqli_real_escape_string($mysqli , $_POST['title']); $subject = mysqli_real_escape_string($mysqli , $_POST['subject']); $details = mysqli_real_escape_string($mysqli , $_POST['editor1']); $sql = "INSERT INTO blog( title ,subject ,details) VALUES ('$title' ,'$subject' ,'$details')"; if (!mysqli_query($mysqli,$sql)) { die('Error: ' . mysqli_error($mysqli)); } header("location:../blog_section.php"); ?>