can I insert a value (type DATE) in a table like this?
foreach ($hbegin as &$value)
foreach ($hend as &$value2)
$hourBegin = $_POST['hbegin'];
$hourEnd = $_POST['hend'];
$formatHour = $value.'-'.$value2;
INSERT INTO table VALUES($formatHour);
Note:
hbegin
is an array with a beginning hours
hbend
is an array with an ending hours
Example:
hbegin[10,20,21]
hend[05,30,35]
formatHour
10-05
20-30
21-35