944,068 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 16379
  • PHP RSS
Apr 20th, 2005
0

PHP Confirm Delete

Expand Post »
Is there a way to make a admin back end function to delete a MySQL entry after the user has click a button to confirm deletion.

I am trying to figure this out using statements and functions but I am hitting nothing but errors
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
adromidon is offline Offline
11 posts
since Apr 2005
Apr 20th, 2005
0

Re: PHP Confirm Delete

well there are multiple components to this, are you having trouble generating the MySQL script? Make sure to pass the unique id/primary key of the item you want to erase from the form.
PHP Syntax (Toggle Plain Text)
  1. DELETE FROM table_name WHERE unique_key='something';

or are you having trouble setting up the form? let me know a little more and i will be more than happy to help
Reputation Points: 13
Solved Threads: 4
Posting Whiz
paradox814 is offline Offline
351 posts
since Oct 2004
Apr 20th, 2005
0

Re: PHP Confirm Delete

The delete i can accomplish it is showing the record then having the user click a button that says yes they want to dlete it then running the Query

I can only seem to accomplish one or the other when i try to display the record and then try to have it dlete when someone hits the dlete button it craps out i can seem to get a form variable where they insert the record ID hit submit and the next page deletes that record but i can not seem to get the displaying before deleteing and the deletion to mesh together

Does this make sense?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
adromidon is offline Offline
11 posts
since Apr 2005
Apr 20th, 2005
0

Re: PHP Confirm Delete

If you have code you should post it...
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005
Apr 20th, 2005
-1

Re: PHP Confirm Delete

Quote originally posted by DanceInstructor ...
If you have code you should post it...
I had code but i got so dang frustrated with this that i trashed the page but i am gonna see if i can remeber what i had as far as code
Reputation Points: 10
Solved Threads: 0
Newbie Poster
adromidon is offline Offline
11 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP templating system
Next Thread in PHP Forum Timeline: PHP -I just don't know..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC