Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am posting this message on behalf of one of my developers, so please forgive me if I am not technically precise in my description of the problem.
We’ve been developing a system that utilizes session variables. The system is coded in PHP and our servers are running version 5.0. One of the modules in this system generates data through a five step process (form submissions) and upon approval on the fifth step, writes the results of the other four steps to the database. The data from the steps are stored as session variables and are only written on the final step. The functionality is very similar to a shopping cart.
On step three, a two dimensional array is created and stored as a session variable. The array data is created using data from a table that contains a dynamic number of records.
At random intervals the session variable fails to create, causing a MySQL error, which excludes this step from the process.
Is there a bug with arrays and sessions that could cause this to occur? Any assistance would be greatly appreciated.
Kind RegardsCode: Select all
<?
$_SESSION['IMG']=array();
while($fld=$this->GetFields())
{
$_SESSION['IMG'][] = array('DATE'=>$fld['DATE'],'ID'=>$fld['ID'],'CT'=>$fld['CT'],'STATUS'=>$fld['STATUS'],'LOCATION'=>$fld['LOCATION'],'ORDER'=>$fld['ORDER'],'NOTES'=>$fld['NOTES']) ;
} // - - - while()
?>Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]