SHARE
TWEET

Untitled

a guest May 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function getmultidimusers($membertype, $orderby) {
  2.     $query = mysql_query("SELECT * FROM users WHERE `membertype`='" . $membertype . "' AND `banned` != '1' ORDER BY " . $orderby);
  3.     while($thisUser = mysql_fetch_array($query)) {
  4.         $curentUser = array(
  5.             'userid'=>$thisUser['userid'],
  6.             'username'=>$thisUser['username'],
  7.             'email'=>$thisUser['email'],
  8.             'membertype'=>$thisUser['membertype'],
  9.             'biogrphy'=>$thisUser['biography'],
  10.             'banned'=>$thisUser['banned'],
  11.             'avatarURL'=>$thisUser['avatarURL'],
  12.             'websiteurl'=>$thisUser['websiteurl'],
  13.             'botowner'=>$thisUser['botowner'],
  14.             'secgroup'=>$thisUser['secgroup'],
  15.             'twitterurl'=>$thisUser['twitterurl'],
  16.             'lastlogin'=>$thisUser['lastlogin']
  17.         );
  18.  
  19.         return $curentUser;
  20.     }
  21.  
  22.     }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top