Punjabi revolution tutorials PHP MySQL Connection Part 4 delete

PHP MySQL – Deleting table records using Delete query

it is same as insertion. To delete, we need a the value of the id against which we would execute the delete query.  Below is a sample code alongwith explanation.

Line 4: the string of delete query, whereas the $_GET is used to get the variable passed using get method or query string. This variable can be viewed in URL as well.

Leave a Reply

Your email address will not be published. Required fields are marked *