Re: Passing values dynamically

From: Date: Fri, 17 Oct 2003 09:53:44 +0000
Subject: Re: Passing values dynamically
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166430@lists.php.net to get a copy of this message
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


« previous php.general (#166430) next »