Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2.     require_once 'conn.php';
  3.    
  4.     if(ISSET($_POST['save'])){
  5.         $title = addslashes($_POST['title']);
  6.         $content = addslashes($_POST['content']);
  7.        
  8.         mysqli_query($conn, "INSERT INTO `blog` VALUES('', '$title', '$content')") or die(mysqli_error());
  9.        
  10.         header('location: index.php');
  11.        
  12.     }
  13. ?>