I'd like to display a users real name once they log in. ex. "Welcome Joey".
Using the following, I get no output. It doesn't throw an error but doesn't return a value either.
Any idea what I'm doing wrong?
Thanks
===========================================================
session_register('logname','firstName','lastName');
<?
$sql = "SELECT fName FROM `users` WHERE loginName = '$logname'";
$firstName = fName;
?>
Welcome
<? print $firstName;
?>.
===========================================================
Benzito
PHP newbie: anything I say can and will be used against me!
Using the following, I get no output. It doesn't throw an error but doesn't return a value either.
Any idea what I'm doing wrong?
Thanks
===========================================================
session_register('logname','firstName','lastName');
<?
$sql = "SELECT fName FROM `users` WHERE loginName = '$logname'";
$firstName = fName;
?>
Welcome
<? print $firstName;
?>.
===========================================================
Benzito
PHP newbie: anything I say can and will be used against me!