Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //$servername = "mysql.ct8.pl";
- //$username = "m1787_kuba";
- //$password = "koloKolo1";
- //try {
- // $conn = new PDO("mysql:host=$servername;dbname=m1787_kuba", $username, $password);
- // set the PDO error mode to exception
- // $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- //}
- //catch(PDOException $e)
- //{
- //echo "Connection failed: " . $e->getMessage();
- //}
- //$id = isSet( $_GET['id'] ) ? intval($_GET['id'] ) : 0;
- //if($id > 0)
- //{
- // $sth = $conn->prepare('DELETE FROM posty WHERE id = :id');
- // $sth->bindParam(':id', $id);
- // $sth->execute();
- // header('Location: admpost.php');
- // exit();
- //}
- //else
- //{
- // header('Location: admpost.php');
- // exit();
- //}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement