"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My mistake. The correct code that works is;
>
> $display_time = date("H:i");
>
> // round time to nearest 15 minute interval
> $display_timex = explode (":",$display_time) ;
> if (($display_timex[1]
operator error. I didn't show all the code. Here it is;
$display_time = date("H:i");
// round time to nearest 15 minute interval
$display_timex = explode (":",$display_time) ;
if (($display_timex[1] >= 00) || ($display_timex[1] <= 07)) {
$insert_time = $display_timex[0] . ":00";
} elseif (($
Doesn't matter, PHP will juggle the type and make it a number. What do
you get for results, these look like they should work. Are you getting
errors or are you getting odd results?
---John Holmes...
> -Original Message-
> From: Tom Beidler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, Ma
3 matches
Mail list logo