Variable Value 2 Session Name

From: Date: Tue, 05 Nov 2002 11:16:10 +0000
Subject: Variable Value 2 Session Name
Groups: php.general 
Request: Send a blank email to php-general+get-122752@lists.php.net to get a copy of this message
I'm trying to create what I believe should be a simple script to help with logging users into my site. My problem is that at the top of my script I set a variable with it's value and then at later script I cannot appear to access it. Extract of my code is as follows and fails: $IDField = "loginemail"; $SessionUser = $row['.$IDFeild.']; session_register('SessionUser'); However if I change the second line to $SessionUser = $row['loginemail']; It works great. Any help would be really appreciated as I think it's just me missing some basics. Thanks Stephen

« previous php.general (#122752) next »