Guest User

Untitled

a guest
Dec 17th, 2021
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <?php include "php/read.php"; ?>
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>Create</title>
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  8. <link rel="stylesheet" href="css/style.css">
  9. </head>
  10. <body>
  11. <div class="container">
  12. <div class="box">
  13. <h4 class="display-4 text-center">Read</h4> <br>
  14. <?php if (isset($_GET['success'])){ ?>
  15. <div class="alert alert-success" role="alert">
  16. <?php echo $_GET['success']; ?>
  17. </div>
  18. <?php } ?>
  19. <?php if (mysqli_num_rows($result)){ ?>
  20. <table class="table table-striped table-hover text-center">
  21. <thead>
  22. <th scope="col">#</th>
  23. <th scope="col">PO Num</th>
  24. <th scope="col">Site Name</th>
  25. <th scope="col">Action</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php
  30. $i = 0;
  31. while($rows = mysqli_fetch_assoc($result)){
  32. $i++;
  33. ?>
  34. <tr>
  35. <th scope ="row"><?=$i?></th>
  36. <td><?=$rows['poNum']?></td>
  37. <td><?=$rows['site_name']?></td>
  38. <td><a href="update.php?id=<?=$rows['id']?>"
  39. class="btn btn-success">Update</a>
  40.  
  41. <a href="php/delete.php?id=<?=$rows['id']?>"
  42. class="btn btn-danger">Delete</a>
  43.  
  44. </td>
  45. </tr>
  46. <?php } ?>
  47. </tbody>
  48. </table>
  49. <?php } ?>
  50. <div class="link-right">
  51. <a href="index.php" class="link-primary">Create</a>
  52. </div>
  53. </div>
  54. </div>
  55. </body>
  56. </html>
  57. <!-- #1Create https://www.youtube.com/watch?v=FxSLIvmnwzY
  58. #Read https://www.youtube.com/watch?v=qglyAJ8BzIE
  59. -->
  60.  
Advertisement
Add Comment
Please, Sign In to add comment