issue no:1607
This commit is contained in:
parent
3918f37b33
commit
ff7897442c
@ -84,9 +84,9 @@ $db['default'] = array(
|
||||
// 'password' => 'apollosit1234',
|
||||
// 'database' => 'apollod4_ApolloDECNEWSIT',
|
||||
|
||||
// 'username' => 'apollod4_PROD',
|
||||
// 'password' => 'approd!2017',
|
||||
// 'database' =>'apollod4_ApolloDECNEWPROD',
|
||||
// 'username' => 'apollod4_PROD',
|
||||
// 'password' => 'approd!2017',
|
||||
// 'database' =>'apollod4_ApolloDECNEWPROD',
|
||||
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
|
||||
@ -95,7 +95,7 @@ class Reregister_model extends CI_Model
|
||||
//print_r($data['studentListOne']);
|
||||
$data['finalStudentList'] = array();
|
||||
|
||||
|
||||
// print_r($data['studentListOne']);die();
|
||||
//print_r($this->db->last_query());die();
|
||||
foreach($data['studentListOne'] as $student)
|
||||
{
|
||||
@ -135,7 +135,7 @@ class Reregister_model extends CI_Model
|
||||
$num++;
|
||||
$next_sem = 'YEAR'.$num;
|
||||
}
|
||||
|
||||
//print_r($this->db->last_query());die();
|
||||
|
||||
//FIND OUT FEESTYPE ID
|
||||
|
||||
@ -162,7 +162,7 @@ class Reregister_model extends CI_Model
|
||||
$this->db->where('T_Students_Fees_Status.FeesType',$feesID);
|
||||
$res = $this->db->get();
|
||||
$res = $res->result_array();
|
||||
// print_r($this->db->last_query());
|
||||
// print_r($this->db->last_query());die();
|
||||
// print_r($res);
|
||||
if($res[0]['feescount'] == 0)
|
||||
{
|
||||
@ -188,10 +188,22 @@ class Reregister_model extends CI_Model
|
||||
$tempResult = $this->db->query($sqlquery,array($branchId,$tempArray['SessionDate']));
|
||||
$tempResult = $tempResult->result();
|
||||
//echo $this->db->last_query();
|
||||
if($tempResult[0]){
|
||||
$tempArray['nextSessionName'] = $tempResult[0]->SessionName;
|
||||
$tempArray['nextSessionID'] = $tempResult[0]->SessionID;
|
||||
}
|
||||
// print_r($tempResult[0]);die();
|
||||
// if($tempResult[0]){
|
||||
// $tempArray['nextSessionName'] = $tempResult[0]->SessionName;
|
||||
// $tempArray['nextSessionID'] = $tempResult[0]->SessionID;
|
||||
// }
|
||||
|
||||
|
||||
if(!empty($tempResult))
|
||||
{
|
||||
foreach($tempResult as $tem)
|
||||
{
|
||||
$tempArray['nextSessionName'] = $tem->SessionName;
|
||||
$tempArray['nextSessionID'] = $tem->SessionID;
|
||||
}
|
||||
}
|
||||
|
||||
else{
|
||||
$tempArray['nextSessionName'] = "";
|
||||
$tempArray['nextSessionID'] = "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user