Recordets and Regions
Eric,
A little background.
My users table includes a ProfileUpdate field where the value is set according to the user when they login and visit the profile update page.
There are 2 option 0 (Off) and 1 (On)
When the user has updated their profile they are redirected to the index.php page where a recordset is run to determine the current value of the ProfileUpdate field.
It'll either be '1' or '0'.
Now, in my show region #1, i'm validating the recordset value <?php echo $row_rsUserProfile['UserProfileUpdate']; ?>=1 to allow the show region #1
and <?php echo $row_rsUserProfile['UserProfileUpdate']; ?>=0 to allow the show region #2
I figure in theory this should work, but neither region shows despite the recordset returning the values 1 or 0 on the index.php page ok.
The reason i'm using a recordset and not a session for the same value, is that if the user updates the ProfileUpdate in their profile, the session will be holding an old value. Whereas the recordset returns the up-to-date value from the table.
Are you saying that the rule cannot work with a recordeset value on the same page?
Incidentally, the script snip in your post returned all the session values expected when placed in my index.php page.