Trying to get a Session variable to equal a Recordset Value
I am trying to get a session variable to equal a recordset value, I am writing the variable as
<?php $_SESSION['COMMID']=$_rsPAGES['page_1']; ?>
However the value for it comes up empty when I try to display it.
The query rsPAGES is filtered by a GET value that equals a SEPARATE session variable that I have directly above the first one I typed. It looks like...
<?php $_SESSION['PAGEID']=$_GET['ID']; ?>
Is it possible to do what I am trying to do here. The rsPAGES values work fine when displayed on other parts of the page but when I try to incorporate them into the session variable I get nothing.