0byt3m1n1
Path:
C:
/
wamp64
/
www
/
id
/
[
Home
]
File: issuelist.php
<?php session_start(); include("db_connect.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <table id="example" class="display nowrap" style="width:50% "> <style> table { width: 100%; border-collapse: collapse; margin-left:50px; margin-top:50px; } table, th, td { border: 1px solid black; text-align: center; line-height:2; } </style> <thead> <tr> <th>ID</th> <th>Name</th> <!-- <th>Address</th><td style='word-wrap: break-word;min-width: 5px;max-width: 10px;'><$address</td>--> <th>Designation</th> <th>Division</th> <th>Valid To</th> <!--<th>Project Code</th> <th>Blood Group</th> <th>Phone</th> <th>Status</th> <th>Photo</th> --> </tr> </thead> <tbody> <?php $sqlmember ="SELECT * FROM employees WHERE status='ISSUED'ORDER BY id "; $retrieve = mysqli_query($db,$sqlmember); $count=0; while($found = mysqli_fetch_array($retrieve)) { $id=$found['id']; $first_name=$found['first_name'];$last_name=$found['last_name'];$designation=$found['designation'];$division=$found['division']; $id=$found['id'];$project_code=$found['project_code'];$principal_investigator=$found['principal_investigator'];$mail_id=$found['mail_id']; $address=$found['address']; $blood_group=$found['blood_group']; $phone=$found['phone']; $mobile=$found['mobile'];$dob=$found['dob']; $validfrom=$found['valid_from']; $validity=$found['valid_to']; $validto=strtotime($found['valid_to']);$photo=$found['photo'];$status=$found['status']; $date= new DateTime($found['valid_to']); $valto= $date->format('d-m-Y'); echo "<tr> <td>$id</td> <td>$first_name $last_name</td> <td>$designation</td> <td>$division</td> <td>$valto</td> </tr>" ; } ?> </tbody> </body> </html>