ok

Mini Shell

Direktori : /home/keydecors/www/ca/admin/app/controller/
Upload File :
Current File : /home/keydecors/www/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");
?>

Zerion Mini Shell 1.0