Hi all
I just can't get my head around this problem.
I have a if statement which should look for the value of a SESSION variable, depending on the content of the variable echo a statement.
My SESSION var is "$SESSION['product_id']" and my IF ELSE statement is:
<?php if ($_SESSION['product_id'] = 1) {
echo; ?>
<a href="staff_view.php" target="_self">VIEW STAFF MEMBERS </a>
<? } else {
echo "";
}
?>
If I look at the content of all my SESSION var "product_id" holds "17" but the first IF statement is displayed.
If I use "print_r($_SESSION); " at the start of my script my SESSION vars (part list) are shown as :
[member_id] => 1338022 [product_id] => 17 [begin_date] => 2007-06-12
Can anyone see what is going on.