apologies this is probably a simple question - I am using php and JS to create a counter and I have stored a time using an SQL time field in my DB- I run a query to return this time but I now wish to convert this time into an integer, I assume I need to use the following, but I am lost on the syntax: http://www.electrictoolbox.com/using-strtotime-with-php/
any help would be appreciated. many thanks in advance
TIMEdata type. Now please let us know what kind of integer you need from a TIME item? For example, if the time is 00:00 (midnight) what do you want? If the time is 12:30 (a half-hour after noon) what do you want?