how can I set my mysql database βtimeβ data type only in HH: MM in the database, in my script the user enters only HH: MM, and the DB automatically adds the last: SS digits, the problem is when I pull this value for editing, it also adds the last digits, which is annoying, I can get rid of it with PHP and truncate from the end, but I was hoping that you set it in the database to delete the last 2 digits of SS permanently.
source
share