Can I store date and time in one cell in MySql?
I’d like to stick in data through an html code table straight into MySql using PHP with this data insert the current date and time, but have the date plus time stored of hospitality attire cell.If that’s possible.
I have learned to get this form to be able to insert towards MySql, it’s just your date plus time Im stuck on.
Help
Yes, make use of the “Datetime” format
intended for example
change table TABLENAME create column posted_time datetime;
in the event the table witout a doubt exists
or
produce table discussions (postId mediumint unsigned auto_increment primary key, post_title varchar(128), post_body copy, posted_time datetime);
Leave a Reply
You must be logged in to post a comment.