Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- //this file should be inside mamp htdocs
- require '../dbinfo.php';
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <!--Title name of page-->
- <title>Dee Truffles</title>
- <meta />
- <link rel="stylesheet" href="css/style.css" />
- </head>
- <body>
- <div id="top-nav">
- <div class="logo">
- <!--Logo Image-->
- <img src="images/kinder/kinder1.png" />
- </div>
- <div class="search-box-&-main-menu-container">
- <!--Main menu-->
- <!--Wrapper for main menu-->
- <ul class="main-menu" >
- <li><a href="admin_user.php">Admin/User</a> </li>
- <li><a href="order.php">Orders</a> </li>
- <li><a href="faq.php">FAQ</a></li>
- <li><a href="product.php">Products</a> </li>
- <li><a href="customer.php">Customer</a></li>
- <li><a href="category.php">Category</a> </li>
- </ul>
- </div>
- <?php
- $sql= "select staff_id, email from staff_table";
- //execute the sql statement
- $statement = $db->query($sql);
- foreach ($statement as $results) {
- //Display the product image, product name on index.php
- echo'<tr>
- <!--Requesting all the staff emails from the database-->
- <td><b>Email:</b> '. $results['email'].'</td>
- <!--Edit the staff emails-->
- <td><a href="admin_user_edit.php?id='.$results['staff_id'].'">Edit</a></td>
- <!--Delete the staff emails-->
- <td><a href="admin_user_delete.php?id='.$results['staff_id'].'">Delete</a></td>
- </tr>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement