daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     require('connect.php');
  3.     $id = $_GET['id'];
  4.  
  5.     $sql = "SELECT * FROM blog";
  6.     $stmt=$conn->prepare($sql);
  7.     $stmt->execute(['blogid' => $id]);
  8.  
  9.     if($stmt->rowCOunt() < 1){
  10.         echo '<h1>Could find blog post </h1>';
  11.         require('footer.php');
  12.         exit;
  13.     }
  14.    
  15. <?php
  16. $servername="localhost";
  17. $username="a";
  18. $password="";
  19.  
  20. $conn = new PDO("mysql:host=$servername;dbname=local",$username,$password);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top