I need some guidance with my delete function
Posted: Mon Nov 02, 2009 9:06 pm
I have a site that has user profiles. A user can comment on a another users profile. I have this all set up. What I am trying to do now, is through PHP, make a delete link appear ONLY when a users is looking at their own profile, and disappear when they are looking at other peoples profiles.
So I can not figure out how to:
1. make the delete link reload the page with the chosen comment to be deleted actually deleted
2. tell the db to mark the deleted comment as 'dead'
3. make the delete link only appear on YOUR profile and not when you are looking at other people profiles.
Not trying to get people to do this for me, I have been researching this for 12 hours today and can not make it happen
Any links to resources, examples etc... would be greatly appreciated

So I can not figure out how to:
1. make the delete link reload the page with the chosen comment to be deleted actually deleted
2. tell the db to mark the deleted comment as 'dead'
3. make the delete link only appear on YOUR profile and not when you are looking at other people profiles.
Not trying to get people to do this for me, I have been researching this for 12 hours today and can not make it happen
Any links to resources, examples etc... would be greatly appreciated