Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing based on Users

Status
Not open for further replies.

MIGhunter

Technical User
Apr 19, 2006
5
US
I have a system that allows people to enter some info. How can I make it so that they can only edit their info?

I have a system for logging in to certain pages. I just can't seem to figure out how to make the check so that users can only edit or delete the post if they entered it or if the admin entered it for them.
 
What I do is svae the users login ID in a field in the table their data goes into. Then you can only allow then to edit the rows the created of created for them by an admin.

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top