Admin Panel

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 4
Joined: Sun Jan 27, 2013 5:07 am

Admin Panel

Postby suyash87 » Sun Jan 27, 2013 5:12 am

Hello, I have created a page with data and login option on it. What I want is when a member login then he can see the data only but not the editing options, but when admin logins then he can see the editing options on same page. How can I do it? Need some guidance. hank you in advance.


User avatar
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire

Re: Admin Panel

Postby simplypixie » Sun Jan 27, 2013 10:54 am

Use sessions to store data when someone is logged in (presume you are doing this already otherwise your login won't work properly anyway) then check that the session to see what type of person is logged in and if admin then display the edit options.

A bit difficult to give more detailed help without seeing what code you already have in place.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 9 guests