Related Posts
Update into database php
How to make php connection in easy short way
Delete Data from Database using PHP
<?php
include('conn.php'); //This is Connection Filev
$Que="DELETE FROM TABLE_name where id='5';
mysql_query($Que);
?>
The above line of code delete the record of table which has the id number '5'.
First of all we write query in a php variable '$Que' Now all the query is in '$Que',we then pass this variable in the php mysql function mysql_query();
- mysql_query($Que);