更改12:00 s到00:00:00 php sql

时间:2015-04-07 22:33:12

标签: php mysql

目前我有这个

$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

请告诉我

问候

格伦

1 个答案:

答案 0 :(得分:0)

如果要覆盖数据库的值,则只需使$ curHour =“00”;