usergroup_model.php 352 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class usergroup_model extends Model
  3. {
  4. function __construct()
  5. {
  6. parent::Model();
  7. }
  8. function usergroup_model()
  9. {
  10. $this->__construct();
  11. }
  12. function fields_one($id)
  13. {
  14. if(!$id)
  15. {
  16. return false;
  17. }
  18. $sql = "SELECT * FROM ".$this->db->prefix."user_fields WHERE id='".$id."'";
  19. $rs = $this->db->get_one($sql);
  20. return $rs;
  21. }
  22. }
  23. ?>