orderby in newreg perort

This commit is contained in:
venbatechnologies@gmail.com 2018-11-05 14:58:18 +05:30
parent 2457da513e
commit c741266ce6
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,6 @@ $db['default'] = array(
'password' => 'apollo1234',
'database' => 'apollod4_ApolloDECDev',
// 'username' => 'apollod4_SIT',
// 'password' => 'apollosit1234',
// 'database' => 'apollod4_ApolloDECNEWSIT',

View File

@ -1131,7 +1131,9 @@ T_Registration_Details.BranchCode= '".$branch."'";
$subQuery.='group by T_Student_CourseDetails.ID';
$query = $this->db->query($subQuery,array());
$subQuery.=' order by str_to_date(T_Student_CourseDetails.DOJ,?) desc';
$query = $this->db->query($subQuery,array('%d-%m-%Y'));
$searchDetails =$query->result();