Hi,
I´m transfering my site from my local server with php5 to a prod. server with php4.
This works in my pc, but not when I upload it to a server:
I want to get the value from the session var. and then set it to 0.
if ( $SESSION['articleID'] != 0 ) { $articleID = $SESSION['articleID']; $_SESSION['articleID'] = 0; }
The result is that on the prod.server (with php4) the var. $articleID is always 0.
This works on the prod. server, but then my script does not work as it should:
if ( $SESSION['articleID'] != 0 ) { $articleID = $SESSION['articleID'];}
It seems to me that the red code exicutes before the yellow code???
if ( $SESSION['articleID'] != 0 ) { $articleID = $SESSION['articleID']; $_SESSION['articleID'] = 0; }
I even tryed this:
if ( $SESSION['articleID'] != 0 ) { $articleID = $SESSION['articleID']; if ( $articleID != 0 ) { $_SESSION['articleID'] = 0; } }
But that still resolves to the var. $articleID to be 0.
Can anyone help on this?
Haffi