Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. //Löschlink
  2.  
  3. <a href="index2.php?page=termine_edit&action=delete&id=<?php echo $data['idtermine'] ?>&email=urlencode(<?php echo $data['email'] ?>) id="löschen">Termin ablehnen</a>
  4.  
  5.  
  6. // Sexy Löschlogik
  7.  
  8.  
  9. }elseif ($action == 'delete' && isset($_GET['id']) && isset($_GET['email'])) {
  10.  
  11.         // Löschlogik ausführen
  12.         $email = urldecode($_GET['email']);
  13.  
  14.         $id = mysql_real_escape_string($_GET['id']);
  15.  
  16.         $sql2 = "DELETE FROM termine where idtermine = $id";
  17.  
  18.         query($sql2);
  19.  
  20.         mail($email, 'Betreff', 'Nachricht', 'From: Nadelöhr <booking@nadeloehr.de>');
  21.  
  22.         header('location: index2.php?page=termine_edit');
  23.  
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement