Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
require('Common/Header.php');
$enroll_no = $f_s_d['enroll_no'];
$fee = 0;
$date = date('Y-m-d');
$time = date('H:i:s');
$certi_name = "Bonafied";
if (isset($_POST['apply'])) {
$check = mysqli_query($conn, "SELECT * FROM `certificatedata` where enroll_no = '$enroll_no' and certi_name = '$certi_name'");
if (mysqli_num_rows($check) == 0) {
$uid = uid_generator();
$insert = "INSERT INTO `certificatedata`(`certi_id`,`enroll_no`, `certi_name`, `date`, `time`, `fee`,`status`)
VALUES ('$uid','$enroll_no','$certi_name','$date','$time','$fee','Pending')";
if (mysqli_query($conn, $insert)) {
SuccessFun('Application Submitted Successfully');
} else {
DangerFun('Application Failed');
}
} else {
DangerFun('Application already submitted');
}
}
?>
<!-- Content Wrapper -->
<!-- ----------Top bar start------------ -->
<!-- ----------Top bar End------------ -->
<!-- Begin Page Content -->
<div class="container-fluid">
<div class="card shadow">
<div class="card-header ">
<h4 class="text-primary font-weight-bold" style="font-size:20px"> Apply for <?php echo $certi_name ?></h4>
</div>
<div class="card-body overflow-auto">
<table class="table table-bordered">
<tr>
<th>Full Name</th>
<td><?php echo $f_s_d['full_name'] ?></td>
</tr>
<tr>
<th>Father Name</th>
<td><?php echo $f_s_d['father'] ?></td>
</tr>
<tr>
<th>Mother Name</th>
<td><?php echo $f_s_d['mother'] ?></td>
</tr>
<tr>
<th>Enrollement Number</th>
<td><?php echo $f_s_d['enroll_no'] ?></td>
</tr>
<tr>
<th>Roll Number</th>
<td><?php echo $f_s_d['roll_no'] ?></td>
</tr>
<tr>
<th>Course</th>
<td><?php echo $f_s_d['course'] ?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $f_s_d['email'] ?></td>
</tr>
</table>
</div>
<div class="card-footer">
<form method="POST">
<div class="row mb-5">
<div class="col-12 mb-3 text-center">
<button type="submit" name="apply" class="btn btn-info">Apply</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php require('Common/Footer.php') ?>
</body>
</html>
