Hi Jordan,

Using sessions in PHP4, like this:

session_start();
$n = -1;
//Read an index from an Oracle table
while (OCIFetch($rs)) {
        $n = $n + 1;
        $ix[$n] = OCIResult($rs,1);
}
session_register("n");
session_register("ix");

In the next page you have a session_start() again, and can refer to $ix[0],
$ix[1],.. $ix[$n] etc.

Rudolf Visagie
[EMAIL PROTECTED]


-----Original Message-----
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 02:56
To: PHP Database Mailing List; PHP General Mailing List
Subject: [PHP] Passing Arrays


Hi,
How can I pass an array between two pages. I've tried using serialize and 
unserialize. But it doen't return an array. When I use gettype() on it, it 
say's that the typ-e is boolean?

Any ideas?

Cheers,

Jord

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to