Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Admin Panel

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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.

Regards,
Suyash
suyash87
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sun Jan 27, 2013 5:07 am

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.
User avatar
simplypixie
php-forum Active User
php-forum Active User
 
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.