Ok, here's a condensed version of the table (all non-relavant cols removed).
I've changed the time_to_open data type a few times trying to get this to work. I just need it to be a time value I can work with in php. Seconds, miliseconds...etc would all be ok. I doubt 'time' is a good choice. Maybe INT?
BTW, the calculation doesn't have to be exact but would like it to be accurate to a few seconds at least.
Code:
CREATE TABLE IF NOT EXISTS `myTable` (
`id` int(11) NOT NULL auto_increment,
`dateTime` datetime NOT NULL default '0000-00-00 00:00:00',
`updated` datetime NOT NULL default '0000-00-00 00:00:00',
`time_to_open` time NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=86 ;
`dateTime` = when the record was added (I know, not the best choice for col name)
`updated` = when the record was opened (again, I know, not the best choice for col name)
Bookmarks