query("SELECT * FROM shift_tank_vw WHERE date='$date'"); //Shift 1 while ($row = $shiftTankReport1->fetchArray()) { if ($row['number']==$shiftnum) { print_r(" Shift Id: Shift Date: Shift Number Shift Opening: Shift Closing: "); print_r( "" ."".$row['shift_id']."" ."".$row['date']."" ."".$row['number']."" ."".$row['open_date']."" ."".$row['close_date']."" ."" ); break; } } ?>