/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/examplesmodel.php

  • Committer: Simon Bergöö
  • Date: 2013-05-15 12:41:14 UTC
  • mfrom: (66 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 67.
  • Revision ID: a11simbe@student.his.se-20130515124114-d9fctkf2rkqq6xg6
Merged from trunk, statred working on the popups model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
                /* Loads category names for menu */
5
5
                function getTitles($user)
6
6
                {
7
 
                        $this -> db -> select('Categories.categoryName, Categories.CourseID');
 
7
                        $this -> db -> select('Categories.categoryName, Categories.courseID');
8
8
                        $this -> db -> from('Categories');
9
9
                        $this -> db -> join('StudentCourseRegistrations', 'Categories.courseID = StudentCourseRegistrations.courseID'); 
10
10
                        $this -> db -> where('StudentCourseRegistrations.username', $user); 
 
11
                        $this -> db -> order_by("orderNr", "asc"); 
11
12
                /*      $this -> db -> where('StudentCourseRegistrations.courseID', 'd1popcrn');  
12
13
                *       Line is disabled for now because of testing purposes.
13
14
                *       Will be modified to be used with parameter in function.