The time is stored in the database in the format of 11:00:00. I don’t need the output of a second, so I use the following on the output. function:
printf('<td>%s</td>', date('G:i',$myrow['time'])); But to any values that lie in the database, displays 4:00 How to fix it? The type in the database is time.