Re: Pass mysql array into SESSION?

From: Date: Thu, 09 Dec 2004 02:14:58 +0000
Subject: Re: Pass mysql array into SESSION?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203782@lists.php.net to get a copy of this message
Jerry Swanson wrote:
I want to pass an array from one page to excell generation page. I tried to pass through session($_SESSION['sql'] = $var). But value is not set. The array is actually $result = mysql_query($query);
did you call session_start() at the beginning of your scripts? Is the query executed without an error? Are there any rows returned? Start with something simple and see if it works: Page 1: session_start(); query database... print_r() the result store the result in session variable link to Page 2 Page 2: session_start(); print_r the session variable

« previous php.general (#203782) next »