The code that I'm using
if ($_REQUEST('addOrEdit') == 'add') {
$stmt2 = $pdo->prepare("insert into ITEM (tracker, date, significance, obsolete, description,data, programs, topics, lastModifiedBy) values (?,?,?,?,?,?,?,?,?");
// $stmt2->execute(array($tracker,$_REQUEST['date'],$_REQUEST['significance],$_REQUEST['obsolete'],$_REQUEST['description'], null, $_REQUEST[program],$_REQUEST[topic],null);
}
If I comment out the if line and the closing parenthesis, it works (on AWS LAMP instance). But otherwise this is breaking my page, and when I try to load it, I see nothing but a blank page.
Elsewhere on my page I am echoing out the $_REQUEST['addOrEdit']
and it shows add
The problem appears to be with my if
usage(?) What am I doing wrong?