";
if( FALSE == isset($discount_id) ){
$discount_id = 00;
}
/*
//insert discount to table while the time segment is NULL
$countSql = "SELECT count(*) as total FROM $tbName WHERE discount_id=$discount_id";
if($DEBUG) echo "countSql=$countSql
";
$countRes = mysqli_query($pubConn,$countSql);
$countRows = mysqli_fetch_array($countRes);
echo "countRows[total]=$countRows[total]
";
if($countRows[total]<24){
}
exit();
*/
//select current discount id details from TABLE "pre_bill_discount"
$selSql = "SELECT * FROM $tbName WHERE discount_id=$discount_id ORDER BY $order";
if($DEBUG) echo "selSql=$selSql
";
$selRes = mysqli_query($objDbConn,$selSql);
$selRows = mysqli_fetch_array($selRes);
?>
| $hours:00:00 - $next_hours:00:00 | "; echo "$mon | "; echo "$tue | "; echo "$wed | "; echo "$thu | "; echo "$fri | "; echo "$sat | "; echo "$sun | "; echo "$holiday | "; echo ""; }while($selRows = @mysqli_fetch_array($selRes)); ?>