将12:00:00更改为00:00:00 php-sql


change 12:00:00 to 00:00:00 php sql

目前我有这个

$time = $db->get_row("SELECT shift,shiftend FROM schedule2");
                    $curHour = $time->shift;
                    $endHour = $time->shiftend;
                    echo $curHour;
                    echo "<br>";

当前此导出时间为12:00:00是否可以更改为00:00:00

请让我知道

问候

Glenn

如果您想覆盖数据库的值,那么只需使$curHour="00";