Guest User

Untitled

a guest
Aug 26th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. $count_users = $db->query("SELECT COUNT(`id`) FROM `users` WHERE `clan_id` = $clan_id")->result();
  2.  
  3. $limit_users = 20;
  4.  
  5. if ($count_users === $limit_users) {
  6.     throw new \Exception("Clan users limit");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment