Re: How to store results into a session variable..
| From: | Stuart Dallas | Date: | Tue, 30 Apr 2002 18:13:18 +0000 |
| Subject: | Re: How to store results into a session variable.. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18913@lists.php.net to get a copy of this message | ||
On 30 Apr 2002 at 11:56, Jas wrote:
> I need a tutorial or example on how to take a result from an mysql
> query and place it into a session variable. Please help? Thanks in
> advance, Jas
This is what I use...
while ($res = mysql_fetch_assoc($query))
{
$retval[] = $res;
}
$retval is then an array of record arrays that can be stored in the session.
--
Stuart