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

Reply via email to