PHP development message board tutorial: message board deletion message PHP page
Deleting a message is actually deleting the data in our database
We passed in the id of each piece of data before deleting the link
So in the PHP page Receive the id and then delete the related id to achieve the deletion function
The code is as follows
alert('删除成功,返回首页');location.href='ressage.php';"; }else{ echo ""; exit; } }die("数据库连接失败" .mysqli_connect_error()); ?>