crispy63
|
| Posted: 10/28/2002, 11:06 AM |
|
This is sort of a follow up question from a previous thread --
I have the following "before insert" code:
$number = dlookup("schedule", "count(*)", "shifttime= " .$fldshifttime and "shiftdate= " .$fldshiftdate)
which I hope places the number of sheduled shift times (from the table schedule) for the shift date and shift time the user selects into the variable "$number".
I now need the redirect to another page "shift_full.php" using an IF statement, if the "$number" count exceeds 5.
I thought I was smart enough to take the ball and run, now I am humble enough to ask for HELP!!!
Thanks in advance,
Crispy
|
|
|
 |
george l.
|
| Posted: 10/28/2002, 9:06 PM |
|
Try this:
if ($number == "5"){
header("Location: shift_full.php"); /* Redirect browser */
exit;
}
|
|
|
 |
|