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

3.jpg

The code is as follows

alert('删除成功,返回首页');location.href='ressage.php';"; }else{ echo ""; exit; } }die("数据库连接失败" .mysqli_connect_error()); ?>


Continuing Learning
||
alert('删除成功,返回首页');location.href='ressage.php';"; }else{ echo ""; exit; } }die("数据库连接失败" .mysqli_connect_error()); ?>
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!