This article mainly shares with you how to update database data in PHP. Hope it helps everyone.
The first step is to create the update page file Upwork.php
删除 修改数据
query($sql1); $att1 = $r1->fetch_row(); ?>
The second step is to create the update data operation file UpworkChuLi.php, Jump through the form in Upwork.php
query($sql); if($r) { header("location:work.php"); } else { echo "修改失败!"; } ?>
Related recommendations:
Five ways to update the database in thinkphp.
php Solution to update database interruption_PHP tutorial
The above is the detailed content of How to update database data in PHP. For more information, please follow other related articles on the PHP Chinese website!