PHP Confirm Delete

Reply

Join Date: Apr 2005
Posts: 11
Reputation: adromidon is an unknown quantity at this point 
Solved Threads: 0
adromidon's Avatar
adromidon adromidon is offline Offline
Newbie Poster

PHP Confirm Delete

 
0
  #1
Apr 20th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: PHP Confirm Delete

 
0
  #2
Apr 20th, 2005
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.
  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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 11
Reputation: adromidon is an unknown quantity at this point 
Solved Threads: 0
adromidon's Avatar
adromidon adromidon is offline Offline
Newbie Poster

Re: PHP Confirm Delete

 
0
  #3
Apr 20th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: PHP Confirm Delete

 
0
  #4
Apr 20th, 2005
If you have code you should post it...
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 11
Reputation: adromidon is an unknown quantity at this point 
Solved Threads: 0
adromidon's Avatar
adromidon adromidon is offline Offline
Newbie Poster

Re: PHP Confirm Delete

 
0
  #5
Apr 20th, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC