/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/viewstudents.php

  • Committer: Erik Wikström
  • Date: 2013-03-28 07:43:18 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: wikxen@gmail.com-20130328074318-9v6krijkyap59nct
Removed trunk folder and moved its contents to the root

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
        Class viewstudents extends CI_Model
3
 
        {
4
 
                /* Loads studentnames names for menu */
5
 
                function getStudents()
6
 
                {
7
 
                        $this -> db -> select('*');
8
 
                        $this -> db -> from('Users'); 
9
 
                        $this -> db -> where('Users.userType', 2); 
10
 
                        $this -> db -> order_by("Users.userName", "asc"); 
11
 
                        
12
 
                        $query = $this -> db -> get();
13
 
                        return $query->result();
14
 
 
15
 
                }
16
 
        }
17
 
?>
18