| | |
PHP Confirm Delete
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
or are you having trouble setting up the form? let me know a little more and i will be more than happy to help
PHP Syntax (Toggle Plain Text)
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
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?
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?
![]() |
Similar Threads
- how can i make php alert pop ups just like in javascript. (PHP)
- javascript+php (JavaScript / DHTML / AJAX)
- php mysqp delete problem (PHP)
- PHP and Javascript working together? (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP templating system
- Next Thread: PHP -I just don't know..
| Thread Tools | Search this Thread |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validation validator variable video web xml youtube





