PHP develops simple news release system and news list page deletion function module

Introduction to this section This section introduces how to delete news from the news list page and delete the record of the news in the database.

We still cannot do without operating the database. Here we need to use delete: delete the data in the data table

Idea:

By deleting Use the id field in the new table of the data path table to delete a news item

1608.png

The SQL statement is:

The complete delete.php file that implements the deletion function:

alert('删除成功');window.location.href='list.php'"; }else{ echo ""; } ?>


Continuing Learning
||
alert('删除成功');window.location.href='list.php'"; }else{ echo ""; } ?>
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!