Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "connectionDetails.php";
- ?>
- <?php
- print_r('$_POST');
- if (isset($_GET['noteid']))
- {
- $noteid2 = $_GET['noteid'];
- // echo "You finally hit this bit, congratulations...";
- $stmt = "UPDATE Notes SET Deleted = GETDATE() WHERE NoteID = (?)";
- $params = $noteid2;
- $stmt = sqlsrv_query($conn, $stmt, $params);
- if ($stmt === false)
- {
- die( print_r(sqlsrv_errors(), true));
- }
- }
- else
- {
- echo "No Data";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement