PHP development corporate website tutorial modification administrator
We have seen the display page, modified, and linked to the modifu.php page
Let’s look at the code of the following page:
修改管理员
Connect to the database
Then Get the id mentioned over there and query based on the id, save the database information to the page, so that we can delete the information and make modifications
Processing the modified php file modifyuser.php We also have a Parameter id
Let’s look at the code of the following modifyuser.php page:
alert('修改管理员成功');location.href='user.php'"; }else{ echo ""; } ?>
With the above code, we have completed the function of modifying the administrator