herghost Posted May 7, 2009 Share Posted May 7, 2009 Hi all, All I want to do is echo a session here instead of $albumno, whatever i do i get an parse error $newname="users/$userid/". $albumno; Any help please! Link to comment https://forums.phpfreaks.com/topic/157290-think-i-am-being-stupid-echo-session/ Share on other sites More sharing options...
Mchl Posted May 7, 2009 Share Posted May 7, 2009 $_SESSION is an array. You can't echo it. You can echo a variable stored in session however $newname="users/$userid/". $_SESSION['albumno']; (assuming it's 'albumno' variable that you want to echo) Link to comment https://forums.phpfreaks.com/topic/157290-think-i-am-being-stupid-echo-session/#findComment-829005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.