PHP MySQL Delete Data

Delete data from mysql using php

We already know how to establish connection between PHP web application and MySQL database system in our previous PHP tutorial. we also learnt to  select data from mysql and insert data into mysql database.

Now, In this PHP tutorial we will learn how to delete data from MySQL database using PHP script.

DELETE Statement

The UPDATE Statement is used to delete the records from an existing table.

DELETE  Statement Syntax

DELETE FROM table_name WHERE Condition

table_name – is the name of table which data to be deleted.

learn more about mysql DELETE statement : DELETE Statement


PHP Example of Delete data from MySQL database

 

Leave a Reply

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

3 + 7 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">