Advertisement
adrianpascua

Untitled

May 24th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(isset($_POST['submit'])) {
  2. include 'config.php';
  3. $query_update = "UPDATE `crew_info` SET `crew_status` = 'NEW' WHERE `id` = ?";
  4. $stmt2 = mysqli_prepare($conn, $query_update);
  5. mysqli_stmt_bind_param($stmt2, 's', $_GET['id']);
  6. mysqli_stmt_execute($stmt2);
  7.  
  8. if (mysqli_stmt_affected_rows($stmt2)) {
  9. echo "Crew update accepted";
  10. } else {
  11. echo 'Error';
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement