Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.142.212.225
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<?php
// $servername = "localhost";
// $username = "root";
// $password = "";
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
$admdb = "logisys3_bcu";
$conn = new mysqli($servername,$username,$password);
if(!$conn)
{
die("Connection failed: " . mysqli_connect_error());
}
$query = "select DATE_FORMAT(NOW(),'%d %b %Y %h:%i %p') as ftime, funivname from control";
$result = mysqli_query($conn,$query);
while($row = mysqli_fetch_assoc($result))
{
$ftime=$row['ftime'];
$funivname=$row['funivname'];
}
$query = "SELECT p.FNAME, p.fdegree, FDESCPN, IF(FGENDER= 'F','FEMALE', 'MALE' ) AS GENDER, FMOBILENO, fcategory, ftotfee, fpaytype, forderid,
IFNULL(FPAYSTATUS,'Not Paid') AS paymentStatus
FROM {$admdb}.phdstudadm p, {$admdb}.degree d WHERE p.FDEGREE = d.FDEGREE AND IFNULL(FFINSUB,'')= 'T' ";
//var_dump($query);
$result = mysqli_query($conn,$query);
$title = '<center class="mt-5 mb-4"><u><h2>'.$funivname.'</h2></u>
<h3>Ph.D Students Summary as on '.$ftime.'</h3></center>';
echo $title;
$table = '<div class="mx-3">
<table class="table table-hover" border="1" cellpadding="10" cellspacing="0">
<thead style = "">
<tr class="text-center" style = "background-color:">
<th><b>Sl. No.</b></th>
<th ><b>Student Name</b></th>
<th ><b>Subject Code</b></th>
<th><b>Subject</b></th>
<th><b>Gender</b></th>
<th><b>Contact</b></th>
<th><b>Category</b></th>
<th><b>Total Fee</b></th>
<th><b>Payment Type</b></th>
<th><b>Order ID</b></th>
<th><b>Payment Status</b></th>
</tr>
</thead>
<tbody >';
$i = 1;
while($row = mysqli_fetch_array($result))
{
$table .= '<tr class="text-center"><td width="2%" >'.$i.'</td>
<td width="2%">'.$row['FNAME'].'</td>
<td >'.$row['fdegree'].'</td>
<td align="left">'.$row['FDESCPN'].'</td>
<td >'.$row['GENDER'].'</td>
<td >'.$row['FMOBILENO'].'</td>
<td >'.$row['fcategory'].'</td>
<td >'.$row['ftotfee'].'</td>
<td >'.$row['fpaytype'].'</td>
<td >'.$row['forderid'].'</td>
<td >'.$row['paymentStatus'].'</td>
</tr>
</tbody>
</div>';
$i++;
}
echo $table;
?>
|