J
|
Jane 3/27/2008 |
Hi, ... elseif (($startdate==$enddate)&&($endtime < $starttime)){ return false; } ... |
J
|
jack knowles author 3/27/2008 |
Hi Jane, |
J
|
Jane 3/27/2008 |
Hi, if (($startdate >= $todaydate)&&($startdate<=$enddate)&& ($endtime < $starttime)){ // success ... |
J
|
jack knowles author 3/27/2008 |
Hi Jane, |
K
|
kenhaley 3/27/2008 |
There are a couple of logic problems. First, if the startdate = enddate, you're always going to get success because of the first if. It won't get past that. After you fix that, you'll still have a problem, because there's no "return true" if the start & end dates are equal and the times are ok. Try this: |
J
|
jack knowles author 3/28/2008 |
Kenh, |