Try this bad boy:
<?php
$hours = date("h"); // hours
$minutes = date("i"); // minutes
$ntime = $_POST['ntime']; // posted time
$nbreak = explode(':', $nbreak);
$nhours = $nbreak[0];
$nminutes = $nbreak[1];
if($nhours >= $hours && $nminutes > $minutes){
header("Location: ..."); // show page
} else {
header("Location: ..."); // dont show page
}
?>
That will work for what you want, but there are several things wrong with (logically).
1. It isn't taking into account AM or PM.
2. It isn't taking into account what day it is, what month it is, or what year it is.
3. The page you want to be shown can be visited even if the posted time isn't past the actual time.
To take into account days and AM or PM you'll want something like this:
<?php
$hours = date("h"); // hours
$minutes = date("i"); // minutes
$meridian = date("a"); // am or pm
$day = date("j"); // day of month
$month = date("n"); // month
$year = date("Y"); // year
$ntime = $_POST['ntime']; // posted time
/******* YOU WILL NEED TO POST NEW VARIABLES WITH THE DAY, MONTH, MERIDIAN AND YEAR*******/
$nday = $_POST['nday'];
$nmonth = $_POST['nmonth'];
$nyear = $_POST['nyear'];
$nmeridian = $_POST['nmeridian'];
/********************************************************************************
******/
$nbreak = explode(':', $nbreak);
$nhours = $nbreak[0];
$nminutes = $nbreak[1];
if($nmonth == $month && $nday >= $day){
$monthCheck = true;
} else {
if($nmonth > $month){
$monthCheck = true;
} else {
$monthCheck = false;
}
}
if($nyear == $year && $nmonth >= $month){
$yearCheck = true;
} else {
if($nyear > $year){
$yearCheck = true;
} else {
$yearCheck = false;
}
}
// if ndate and the actual date are the same
if($nmonth == $month && $nyear == $year && $nday == $day){
if($meridian == 'pm' && $nmeridian == 'am'){
$meridianCheck = true;
} else {
$meridianCheck = false;
}
} else {
if($nmonth > $month && $nyear > $year && $nday > $day){
$meridianCheck = true;
} else {
$meridianCheck = false;
}
}
if($nhours >= $hours && $nminutes > $minutes && $monthCheck == true && $yearCheck == true && $meridianCheck == true){
header("Location: ..."); // show page
} else {
header("Location: ..."); // dont show page
}
?>
Might be a bit more than you need, and there could be a mistake or too, i havent tested it. And i can already see things i should of done to cut down the code

. I also have a bad feeling that theres a function which returns an integer value of the year, month, day and time all in one. Ah well, it's there if you want it
The Creator