Passing PHP variables to an included file?

前端 未结 4 1620
傲寒
傲寒 2020-12-21 00:07

This should work, so I\'m really perplexed about why it\'s not working.

I\'m checking to see if a user is logged in using a $session class method at the top of each

4条回答
  •  既然无缘
    2020-12-21 00:19

    Instead of if (!logged), try if (empty($logged)). That won't generate a notice in cases where the variable hasn't been set.

提交回复
热议问题