0){ $setSql="UPDATE $tableName SET mon = '$mon', tue = '$tue', wed = '$wed', thu = '$thu', fri = '$fri', sat = '$sat', sun = '$sun', holiday = '$holiday' WHERE hours = '$hours' AND discount_id='$discount_id'"; if($DEBUG) echo "
$setSql"; $result= @mysqli_query($pubConn,$setSql); echo mysqli_error($pubConn); echo " "; } //========================================================== //输出并显示数据 //========================================================== $getSql = "SELECT * FROM $tableName WHERE hours='$hours' AND discount_id='$discount_id'"; if($DEBUG) echo "getSql=$getSql
"; $result=mysqli_query($pubConn,$getSql); $rows = mysqli_fetch_array($result); ?> "; echo ""; echo ""; echo "$strThisPage"; echo ""; echo " "; echo ""; echo ""; echo ""; adjust_title_tail(); adjust_content_head(); echo "
"; ?>
" method="POST"> "; // $discount_id=$rows[discount_id]; $hours=$rows[hours]; if(strlen($hours) < 2) $hours='0'.$hours; if(strlen($hours+1) < 2) { $next_hours='0'.($hours+1); } else { $next_hours=$hours+1; } $holiday=change2point($rows[holiday]/100); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } while($rows = @mysqli_fetch_array($result)); ?>
$hours:00:00 - $next_hours:00:00 /100  /100  /100  /100  /100  /100  /100  /100 
    " class="button">