/lenasys/trunk

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

		}
	}
?>