$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;
}