PHP if comparing recordset data and a session value - nothing working?
What is wrong with this...
<?php if ($rsEDITFORM->getColumnVal["SMCformUSERID"] == $_SESSION['SMCinUSERID']) { ?>
Success.
<?php } ?>
I've also tried...
<?php if ($rsEDITFORM->getColumnVal("SMCformUSERID") == $_SESSION['SMCinUSERID']) { ?>
Success.
<?php } ?>
...this...
<?php if ($rsEDITFORM->getColumnVal("SMCformUSERID") == $_SESSION('SMCinUSERID')) { ?>
Success.
<?php } ?>
...and this...
<?php if ($rsEDITFORM->getColumnVa("SMCformUSERID") == $_SESSION("SMCinUSERID")) { ?>
Success.
<?php } ?>
...all without success. When I display both values on the page, they are the same value.
Please can someone help? I'm not seeing where the problem is, and I've also been using the "INSERT" option in DW to display these values and it always inserts this...
<?php echo($rsEDITFORM->getColumnVal("SMCformUSERID")); ?>
<?php echo $_SESSION['SMCinUSERID']; ?>
Thank you.
NJ