CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 IF statement syntax for PHP

Print topic Send  topic

Author Message
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;
}

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.