📅  最后修改于: 2022-03-11 14:54:51.384000             🧑  作者: Mango
$result = mysqli_query($conn,"SELECT * FROM job ORDER BY `CreatedTime` DESC");
echo "
Job Title
Company Name
Location
Closing Date
View Job
";
while($row = mysqli_fetch_array($result) ) {
echo "";
echo "" . $row['positiontitle'] . " ";
echo "" . $row['companyname'] . " ";
echo "" . $row['location'] . " ";
echo "" . $row['closingdate'] . " ";
echo "View Job ";
echo " ";
}
And in job_details.php fetch the details against the id and display the result on that page.
jobdetails.php :
';
echo 'Company Name: '.$jobdetails['companyname'].'
';
echo 'Location: '.$jobdetails['location'].'
';
echo 'Closing Date: '.$jobdetails['closingdate'].'
';
?>