Dunno if its relevant, but the recommended way to use sessions is to assign
stuff to a $_SESSION['varname']...I don't really see anything wrong with the
code...
Also, what arrays are causing the problems?
bastien
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To:
Subject: [PHP-DB] Array problem...
Date: Fri, 16 Sep 2005 09:04:34 -0500
I am migrating a web app from an old server running PHP 4.2.3 to
a new server running 4.3.8. The problem I am running into at the moment
is building an array and passing it to another page. This code works
fine on the old server, but the array is not coming across to the new
page on the new server. Help...
mysql_select_db($database, $Prod);
$shell_list = getEnumOptions('accounts','shell');
$shell_tmp = "\n";
$shell_tmp .= "Default Shell\n";
$shell_tmp .= "-\n";
foreach ($shell_list as $item) {
$shell_tmp .= "$item\n";
}
$shell_tmp .= "\n";
$query_groups = "SELECT name FROM grps";
$groups_tmp = mysql_query($query_groups, $Prod) or die(mysql_error());
$grp_list = "\n";
$grp_list .= "Primary Group\n";
$grp_list .= "---\n";
while($item2 = mysql_fetch_row($groups_tmp)) {
$grp_list .= "$item2[0]\n";
}
$grp_list .= "\n";
".$_POST['system'][$cntr]."";
echo "".$shell_tmp."";
echo "".$grp_list."";
echo "";
$tmp = $sbcuid."-".$_POST['system'][$cntr];
$cntr++;
array_push( $accnts, $tmp );
}
?>
If the systems listed
above are correct, please
proceed. Otherwise, please hit the Back button on your browser and
review your
system selections again.
Scott Nipp
Phone: (214) 858-1289
E-mail: [EMAIL PROTECTED]
Web: http:\\ldsa.sbcld.sbc.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php