Home >Backend Development >PHP Tutorial >php mysql delete data record deletion_PHP tutorial
When you click to delete the connection during operation, the ID of the current entry will be obtained, and then the program will obtain the current ID to perform the deletion operation.
include("conn.php");
$query = "select * from new order by id desc";
$res = mysql tutorial_query($query);
?>
Title: [Delete] [Modify]
}
? ?>
del.php code$del = "delect from test where id in ($tid)";
$res = mysql_query($del);if($res){
http://www.bkjia.com/PHPjc/630767.html
echo "Delete successfully";
}else{
echo "Deletion failed";
}
?>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cnPrevious article:Two kinds of PHP user login codes (cookie, database)_PHP tutorialNext article:Two kinds of PHP user login codes (cookie, database)_PHP tutorialRelated articles
See more