Page 1 of 1

SESSION Value Not updating Each Time

Posted: Thu Nov 17, 2011 4:50 am
by abrahamrkj
This is my php code after search the array query......

Code: Select all

while ($row = mysql_fetch_assoc($query))
         {

           $title = $row['gamename'];
           $description = $row['gamedes'];
           $keywords = $row['keywords'];
            

          echo "-->'$title'"; echo "------>'$description'"; echo '<table border="0"> <tr><td><form method="GET" action="msearchbookh.php"><input type="submit" value="Have It!"></form></td><td><form method="GET" action="msearchbookw.php"><input type="submit" value="Want It!"></form></td></tr></table><hr>';
 $_SESSION['title'] = $title;
         }
In the above post i have to return title of each result to nxt page....pls help.....Thanks in advanse

Re: SESSION Value Not updating Each Time

Posted: Thu Nov 17, 2011 7:02 am
by Celauran
Do you have session_start(); at the beginning of the page?

Re: SESSION Value Not updating Each Time

Posted: Thu Nov 17, 2011 7:06 am
by abrahamrkj
Celauran wrote:Do you have session_start(); at the beginning of the page?

sss...i had ...actually it displays the Search result of many data......but session value only has the last value....but i want each at seperate session ...???