--- In [email protected], "Henry" <[EMAIL PROTECTED]> wrote: > > $reason = $_POST['reason']; > > $timenow=date("Y-m-d H:i:s"); > > $closingtime=date("Y-m-d 16:30:00"); > > $openingtime=date("Y-m-d 08:30:00"); > > $nomorepaymentstime=date("Y-m-d 16:00:00"); > > What I am trying to do is: > > if ($nomorepaymentstime > $timenow) and ($reason == "Pay Bill") { > echo "it is past the time for payments"; > exit(); > } > > I keep getting a syntax error on the comparison line. Can anyone > tell me what I am doing wrong? > Thanks > [EMAIL PROTECTED] > hy dear you use this comparision
if ($nomorepaymentstime > $timenow && $reason == "Pay Bill") it will work fine ok tc
