Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.     $sql = "SELECT * FROM ".$table_users." WHERE user='".$name."' and pass='".$pass."' LIMIT 1";
  2.                
  3.         echo $sql;      
  4.                
  5.         $result = mysqli_query($db, $sql);
  6.                 $row = mysqli_fetch_array($result);
  7.                
  8.                 $activated = $row['activated'];
  9.                 echo $row['activated'];
  10.  
  11.         $count = mysqli_num_rows($result);
  12.    
  13.     if ($count == 1) {
  14.    
  15.         if ($activated == 1) {
  16.             }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement