/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* check if time overlaps parameters should be same date format */ function intersectCheck($from, $from_compare, $to, $to_compare){ if ( $intersect < 0 ) $intersect = 0; $overlap = $intersect / 3600; if ( $overlap <= 0 ): // There are no time conflicts return TRUE; else: // There is a time conflict // echo '<p>There is a time conflict where the times overlap by ' , $overlap , ' hours.</p>'; return FALSE; endif; }
URL: http://www.kirupa.com/forum/showthread.php?t=340013
Comments
