I am developing a website in php mysql. In the home page i am showing only one link for demo purpose and the other links are blocked. There is a login link on top. Only after successful login the home page is reloaded showing all the blocked links.
So what i want to do is load the home page in 2 modes. one before login and other after login.
What should i do. I am new to php mysql. Will global variable work?
Please help

I am developing a website in php mysql. In the home page i am showing only one link for demo purpose and the other links are blocked. There is a login link on top. Only after successful login the home page is reloaded showing all the blocked links.
So what i want to do is load the home page in 2 modes. one before login and other after login.
What should i do. I am new to php mysql. Will global variable work?
Please help

Use session to check whether it is logged in or not.
Hope you will know how to do this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.