Hi,
I need some help with formatting a time filed in the mysql database in a Form, using cakePHP.
I want the dropdown to show 14:00:00, 15:00:00 etc. as the options.
When I type the following in cakePHP,
echo $this->Form->input(‘vlog_in_hours:mins:secs’, array(‘type’ => ‘select’,
‘options’ => array_combine(range(0,23), range(0,23)))
The output is a dropdown of 0 to 23. How to add the min:sec in the dropdown select input box?