query("SELECT * FROM students where enrollment_no = '".$_POST['enrollment_no']."' "); if ($stu->num_rows > 0) { $s = $stu->fetch_assoc(); $c = $con->query("SELECT * FROM centers where id = '".$s['center_id']."'")->fetch_assoc(); $course = $con->query("SELECT * FROM courses where id = '".$s['course_id']."'")->fetch_assoc(); // print_r($course);exit; $bg = '../format/id_card.jpg'; // $bgback = '../format/back_side.png'; $name = $s['name']; $dob = $s['dob']; $father = $s['father']; $center_name = $c['institute_name']; $enroll_no = $s['enrollment_no']; $photo = '../uploads/students/'.$s['photo']; $course_name = $course['course_name']; $mobile = $s['mobile']; $center_code = $c['center_number']; $center_contact_no = $c['contact_number']; $center_addresss = $c['center_full_address']; $address = $s['address']; $session_st = date('Y',strtotime($s['dur_start'])); $session_end = date('Y',strtotime($s['dur_ends'])); include '../get_id_card.php'; exit; } else { echo ''; } } else { require_once 'includes/header.php'; ?>

ID Card