shiftPumpVw1.php 709 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. require "connectionDb.php";
  3. $date = $_GET['selectDateToFind'];
  4. $date = str_replace('-', '_', $date);
  5. $shiftnum = 1;
  6. $shiftPumpReport = $db->query("SELECT * FROM shift_pump_vw WHERE date='$date'");
  7. //Shift 1
  8. while ($row = $shiftPumpReport->fetchArray()) {
  9. if ($row['number']==$shiftnum) {
  10. print_r("<tr>
  11. <th>Shift Id:</th>
  12. <th>Shift Date:</th>
  13. <th>Shift Number</th>
  14. <th>Shift Opening:</th>
  15. <th>Shift Closing:</th>
  16. </tr>");
  17. print_r(
  18. "<tr>"
  19. ."<td>".$row['shift_id']."</td>"
  20. ."<td>".$row['date']."</td>"
  21. ."<td>".$row['number']."</td>"
  22. ."<td>".$row['open_date']."</td>"
  23. ."<td>".$row['close_date']."</td>"
  24. ."</tr>"
  25. );
  26. break;
  27. }
  28. }
  29. ?>