Guest User

Untitled

a guest
Jul 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. public function CapLinkedToUsers($bytes){
  4. require("config.php");
  5.  
  6. $SQL = "SELECT UserName FROM custom_config WHERE (Variable = 'Monthly-Total-Bytes') AND (Value = '$bytes')";
  7. $result = mysql_query($SQL, $conn) or die("Unable to check how many ppl are linked to the cap" . mysql_error($conn));
  8.  
  9. $users = array();
  10.  
  11. while($linked = mysql_fetch_array($result)){
  12. $users[] = $linked['UserName'];
  13. }
  14.  
  15. return $users;
  16. }
  17.  
  18. ?>
Add Comment
Please, Sign In to add comment