i have this code and i need a good condition to stop people booking for one day
$output['date_pickup'] = $pickup;
$output['date_return'] = $return;
// strtotime
$pickup_dtime = strtotime( $output['date_pickup'] . $output['time_pickup'] );
$return_dtime = strtotime( $output['date_return'] . $output['time_return'] );
// PAST TIME?
if ( date('Y-m-d') == $output['date_pickup'] && date_i18n('H:i') > $output['time_pickup'] )
$error .= sprintf(__('Today, you cannot book before %s.', 'textZ'), date_i18n('H:i')) . '<br />';
i try this code but i can't reserve any way the date of retrn is bigger than 24H
if ( $return < 86400 )
$error .= __('today you cannot book.', 'textZ') . '<br />';
So can you help please