Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
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.
- New php-forum User
- Posts: 1
- Joined: Sun Jan 27, 2013 5:07 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.
- php-forum Active User
- Posts: 289
- 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 3 guests