Advertisement
Squito

Untitled

Aug 24th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?PHP
  2. $conn=mysqli_connect("localhost", "júzer", "jelszó", "adatbázis");
  3. if(ctype_digit($_POST['id']))
  4. {
  5.     $query=mysqli_query($conn, "SELECT active FROM items WHERE id=".$_POST['id']." LIMIT 0 1");
  6.     if(mysqli_num_rows($query)==0)
  7.     {
  8.        
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement