PHP Mysql DELETE Query
If you want to delete a record from any MySQL table, then you can use the SQL command DELETE FROM.
To understand Delete query, consider an Customers table, which is having following query
First you can need database connection in php
Code
$querydelte = mysqli_query($con,"DELETE FROM Customers WHERE id='1' ");
if($querydelte)
{
$message = 'Zone Deleted Successfully!!';
}
else
{
$message = 'Due to some Error Please try again!!';
}
2 Comments
Definitely, what a great blog and illuminating posts, I surely will bookmark your website.Have an awsome day!
Thanks for some other informative website. Where else may I am getting that type of information written in such a perfect way? I have a project that I’m just now operating on, and I have been on the look out for such info.