Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.     $is_being_referenced=0;
  3.     include "core_connect.php";
  4.     $mysqli = connectToDB();
  5.    
  6.     $user_id = filter_input(INPUT_POST, 'id', FILTER_VALIDATE_INT);
  7.     $user_state = filter_input(INPUT_POST, 'state', FILTER_VALIDATE_INT);
  8.    
  9.     if ($user_state == 0) {
  10.         $sql = 'UPDATE tickets
  11.             SET state = 1
  12.             WHERE id = :user_id';
  13.         mysqli_query($mysqli, $sql);
  14.     }
  15.     include('data_fetcher.php');
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement