I have this MYSQL table:
[ID] [TIMESTAMP] [TIME] [1] [2010-05-29 01:17:35] [] [1] [2010-05-29 01:23:42] []
... etc.
Now I need to copy the TIMESTAMP value to TIME strings. New TIME lines are created using the PHP time () command;
Problem: I have no idea how to do this. Maybe iwht is a MySQL command, maybe through PHP? Please help me!
My table:
CREATE TABLE `comments` ( `id` int(10) unsigned NOT NULL auto_increment, `ip` int(10) unsigned NOT NULL, `name` varchar(40) NOT NULL, `comment` text NOT NULL, `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `email` varchar(30) NOT NULL, `time` int(100) NOT NULL, PRIMARY KEY (`id`), KEY `news_id` (`m0arid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=17198 ;
Purpose: I want to delete a Timestamp object. Time is better, as I see it.
PS: If you have a general allusion to me, looking at this table, tell me :).
source share