I have created a table where I have set a column, payment_time, to TIMESTAMP DEFAULT CURRENT_TIMESTAMP while creating a table.
When I insert values I set payment_time to blank with ''. However, when I checked the table on the payment_time is showing 0000-00-00 00:00:00 where I am looking for the current time. Am I making a mistake here?
try this
and modify your insert statment like that
EDIT.
due to your edited question here is solution