function getUserList(){ $q = "SELECT * FROM ".TBL_USERS." ORDER BY username"; $result = mysql_query($q, $this->connection); /* Return result array */ $o = 0; while($f=mysql_fetch_array($result)) { $dbarray[$o]['username']=$f["username"]; $o++; } // $dbarray = mysql_fetch_array($result); return $dbarray; }