Guest User

Untitled

a guest
Apr 1st, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2. //$servername = "mysql.ct8.pl";
  3. //$username = "m1787_kuba";
  4. //$password = "1";
  5.  
  6. //try {
  7.   //  $conn = new PDO("mysql:host=$servername;dbname=m1787_kuba", $username, $password);
  8.     // set the PDO error mode to exception
  9.    // $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  10.     //}
  11. //catch(PDOException $e)
  12.     //{
  13.     //echo "Connection failed: " . $e->getMessage();
  14. //}
  15.  
  16. //$id = isSet( $_GET['id'] ) ? intval($_GET['id'] ) : 0;
  17. //if($id > 0)
  18. //{
  19.   //  $sth = $conn->prepare('DELETE FROM posty WHERE id = :id');
  20.    // $sth->bindParam(':id', $id);
  21.    // $sth->execute();
  22.    
  23.    
  24.    
  25.   //  header('Location: admpost.php');
  26.    // exit();
  27. //}
  28. //else
  29. //{
  30.    // header('Location: admpost.php');
  31.    // exit();
  32. //}
  33. ?>
Add Comment
Please, Sign In to add comment