fork(1) download
  1. $production_order_id = $_REQUEST['num'];
  2. $check_type = "stop";
  3.  
  4. switch ($check_type) {
  5. case "stop" :
  6. /*
  7.   *check production order id for `NULL` in start and stop
  8.   *there will be several rows with the same production_number_id
  9.   *update all the NULL value in start and stop with $timestamp
  10.   *and update user with "automated"
  11.   * (this in case some one forgot to check in or out an order)
  12.   *this should only ever affect one row, of course.
  13.   */
  14. break;
  15.  
  16. case "start" :
  17. // update
  18. break;
  19. }
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
$production_order_id = $_REQUEST['num'];
$check_type = "stop";

switch ($check_type) {
    case "stop" :
    /*
    *check production order id for `NULL` in start and stop
    *there will be several rows with the same production_number_id
    *update all the NULL value in start and stop with $timestamp
    *and update user with "automated"
    * (this in case some one forgot to check in or out an order)
    *this should only ever affect one row, of course.
    */
    break; 

    case "start" :
    // update
    break;
}