If the value of Trap = "Edit" I want to point the page to the edit record page, else send it to an add record page.
note,
Code: Select all
<?php echo $row_RS_ProjReports['Trap'] ?> Code: Select all
<?php
$FName = NULL;
if ($row_RS_ProjReports['Trap']="Edit") {
$FName = "ReportMonthlyEdit.php"; } {
$FName = "ReportMonthlyAdd.php"; }?>
Could someone tell me what I'm screwing up?
Thanks,
Betty (php newby)