Complete newbie… I am getting- Parse error: syntax error, unexpected ‘;’ on the following:
[php]
[/php]
Please help.
Complete newbie… I am getting- Parse error: syntax error, unexpected ‘;’ on the following:
[php]
[/php]
Please help.
Should be a comma here:
global $current_user; get_currentuserinfo();
I’m taking a wild guess and I’m also puzzled at the same time. I can’t understand what get_currentuser() is when you can do $current_user->user_login? Though I don’t use global variables for I avoid them.
With that said could you simply do this?
[php]if (isset($current_user)){
echo('Welcome back, ’ . $current_user->user_login . '!   ');
} [/php]