student view changes
This commit is contained in:
parent
a0fec227ee
commit
716ac3b3f1
@ -39,7 +39,9 @@ class Studentview_model extends CI_Model
|
|||||||
$this->db->select('ST.*');
|
$this->db->select('ST.*');
|
||||||
$this->db->from( LOGIN . ' as LO');
|
$this->db->from( LOGIN . ' as LO');
|
||||||
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
||||||
|
$this->db->join( STUDENTCOURSE . ' as STC', 'STC.StudentID = ST.StudentID');
|
||||||
$this->db->where('ST.StudentID', $requestedBy);
|
$this->db->where('ST.StudentID', $requestedBy);
|
||||||
|
$this->db->where('STC.BranchID', $requestedBranch);
|
||||||
$studentDetails = $this->db->get()->first_row();
|
$studentDetails = $this->db->get()->first_row();
|
||||||
if($studentDetails){
|
if($studentDetails){
|
||||||
$result['studentStatus'] = true;
|
$result['studentStatus'] = true;
|
||||||
@ -56,7 +58,9 @@ class Studentview_model extends CI_Model
|
|||||||
$this->db->select('ST.*');
|
$this->db->select('ST.*');
|
||||||
$this->db->from( LOGIN . ' as LO');
|
$this->db->from( LOGIN . ' as LO');
|
||||||
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
||||||
|
$this->db->join( STUDENTCOURSE . ' as STC', 'STC.StudentID = ST.StudentID');
|
||||||
$this->db->where('ST.MobileNumber', $requestedBy);
|
$this->db->where('ST.MobileNumber', $requestedBy);
|
||||||
|
$this->db->where('STC.BranchID', $requestedBranch);
|
||||||
$studentDetails = $this->db->get()->first_row();
|
$studentDetails = $this->db->get()->first_row();
|
||||||
if($studentDetails){
|
if($studentDetails){
|
||||||
$result['studentStatus'] = true;
|
$result['studentStatus'] = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user