[PHP-DB] Sessions help needed !!!

2006-02-17 Thread Chris Payne
Hi there everyone, OK this script worked perfectly on my own apache webserver and I had to move it to the main live server, but for some reason it's not passing session values in the same way and i'm positive it's something damn obvious. On my server I can use: echo $credits_system; echo $cre

Re: [PHP-DB] Sessions help needed !!!

2006-02-17 Thread Micah Stevens
Well, not much to go on, but I'd check variable scope, and register-globals. The latter being more likely as I can't see how the scope would change if you're just copying things over. -Micah On Friday 17 February 2006 2:18 pm, Chris Payne wrote: > Hi there everyone, > > OK this script worked

[PHP-DB] Found the sessions solution :-)

2006-02-17 Thread Chris Payne
Hi Guys, Thanks for your prompt responses. I found if I put the below at the top of each page that needs to display the session data it works fine: foreach($_REQUEST as $key=>$value) { $$key=$value; }; Chris

Re: [PHP-DB] Found the sessions solution :-)

2006-02-17 Thread Micah Stevens
register_globals. :) On Friday 17 February 2006 2:35 pm, Chris Payne wrote: > Hi Guys, > > Thanks for your prompt responses. I found if I put the below at the top of > each page that needs to display the session data it works fine: > > foreach($_REQUEST as $key=>$value) { > $$key=$value