Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.  
  2.    
  3.  
  4. <?php
  5.  
  6. include "connectionDetails.php";
  7.  
  8. ?>
  9.  
  10. <?php
  11.  
  12. print_r('$_POST');
  13.  
  14.  
  15. if (isset($_GET['noteid']))
  16. {
  17.     $noteid2 = $_GET['noteid'];
  18.  
  19.     // echo "You finally hit this bit, congratulations...";
  20.  
  21.     $stmt = "UPDATE Notes SET Deleted = GETDATE() WHERE NoteID = (?)";
  22.     $params = $noteid2;
  23.  
  24.     $stmt = sqlsrv_query($conn, $stmt, $params);
  25.  
  26.     if ($stmt === false)
  27.     {
  28.         die( print_r(sqlsrv_errors(), true));
  29.     }
  30.  
  31. }
  32.  
  33. else
  34. {
  35.     echo "No Data";
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement