You need to create an array in the session and assign the values:
$_SESSION['values']=array();
while( $v=/* get single value */ ) {
    $_SESSION['values'][]=$v; // notice the []
}

Then on the other page loop the array.

Rashini Jayasinghe wrote:

Hi,

I am getting a one column table as a result for a select statement. Now I
want to pass obtained values dynamically to invoke another query in a new
page. I tried to pass the values with sessions. But every time I get the
last value of the previous result.
Any suggestions as how I could pass the value that I click on the current
page ? (One of the row values in the one column table I got as the previous
result)

Thank You.

Rashini




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to