shit
This commit is contained in:
+22
-16
@@ -9,16 +9,16 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<span style="font-family: cursive; color:white; font-size: xx-large;" >Placeholder</span>
|
||||
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
|
||||
<nav>
|
||||
<table>
|
||||
<tr>
|
||||
<th><a href="index.html">
|
||||
<th><a href="home.php">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>Home</a></th>
|
||||
<th><a href="Equipment.html">
|
||||
<th><a href="display.php">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
@@ -33,12 +33,8 @@
|
||||
</nav>
|
||||
</header>
|
||||
<div class="login-box">
|
||||
<table>
|
||||
<tr>
|
||||
<th> Full Name </th>
|
||||
<th>Update?</th>
|
||||
<th>Delete?</th>
|
||||
</tr>
|
||||
<center><h1 style="color: aliceblue">Display Records</h1></center>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
@@ -47,18 +43,28 @@
|
||||
header("location:index.php");
|
||||
}
|
||||
$conn = mysqli_connect('localhost','root','','g1_pila');
|
||||
$command = "select CONCAT(FIRST_NAME, ' ',LAST_NAME) as name from employee";
|
||||
$command = "select SHIPMENT_ID from shipment";
|
||||
$result = mysqli_query($conn,$command);
|
||||
|
||||
while ($row = mysqli_fetch_array($result)){
|
||||
if(mysqli_num_rows($result) > 0){
|
||||
echo "<table style='color: aliceblue; border: 3px solid deepskyblue; padding: 20px;margin-left: 5%'>";
|
||||
echo "<tr>";
|
||||
echo "<th> $row[0] </th>";
|
||||
echo "<th><a href = 'update.php'>Update</a></th>";
|
||||
echo "<th><a href = 'delete.php'>Delete</a></th>";
|
||||
echo "<th> Shipment ID</th>";
|
||||
echo "<th>Update?</th>";
|
||||
echo "<th>Delete?</th>";
|
||||
echo "</tr>";
|
||||
while ($row = mysqli_fetch_array($result)){
|
||||
echo "<tr>";
|
||||
echo "<td class='white-box'> $row[0] </td>";
|
||||
echo "<td class='white-box'><a href='update.php?empID=".$row[0]."'>Update</a></td>";
|
||||
echo "<td class='white-box'><a href = 'delete.php?empID=".$row[0]."' class='white-button'>Delete</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}else{
|
||||
echo "<center><h1 style='color: aliceblue'>Sorry, I can't find any records</h1></center>";
|
||||
}
|
||||
echo "</table>";
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user