soilAnalysisCalcs.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. error_reporting(E_ALL);
  3. ini_set('display_errors', 1);
  4. $id = $_GET['id'];
  5. ?>
  6. <!DOCTYPE HTML>
  7. <html lang="en-US">
  8. <head>
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  11. <meta http-equiv="refresh" content="600">
  12. <title>Job Tracker</title>
  13. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  14. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  15. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
  16. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  17. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  18. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  19. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  20. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  21. <script type="text/javascript" src="https://use.fontawesome.com/1e2844bb90.js"></script>
  22. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script>
  23. </head>
  24. <body>
  25. <div class="container">
  26. <div class="row">
  27. <div class="col">
  28. <?php
  29. $con = mysqli_connect("localhost", "cropmonitor", "brvnCcaEYxlPCS3", "cropmonitor");
  30. $result = mysqli_query($con, " SELECT * FROM `soil_records` WHERE `id` = $id ");
  31. if (!$result) {
  32. printf("Error: %s\n", mysqli_error($con));
  33. exit();
  34. }
  35. while ($row = mysqli_fetch_assoc($result)) {
  36. echo "<div>";
  37. print "<pre>";
  38. print_r($row);
  39. print "<pre>";
  40. echo "</div>";
  41. } ?>
  42. </div>
  43. </div>
  44. </div>
  45. </body>
  46. </html>