Student Id Photo Name Email Contact Course Batch
db->get_where('course', array('id' => $student['course']))->row()->course_name; echo (!empty($course_name)) ? $course_name : ''; ?> db->get_where('batch', array('id' => $student['batch_id'], 'is_active' => 'yes'))->row_array(); echo $batch['b_name']; ?>