PHP development student management system to modify student information

Create edit.php and modify the file

Read the information in the database in the specified format and make corresponding modifications (using HTML and PHP), and then store the new data in the database

5.jpg

The code is as follows


edit.php file code

    学生管理系统 
0) { $stu = mysqli_fetch_assoc($stmt); // 解析数据 }else{ die("no have this id:{$_GET['id']}"); } ?>

修改学生信息

姓名
年龄
性别 >男 >女
班级

Resubmit the modified data on the modified page to the database

1.jpg

The code is as follows

 0){ echo ""; }else{ echo ""; } header('Location: index.php'); ?>

This completes our modification function. The next step is our delete function



Continuing Learning
||
登陆界面

学生管理系统

浏览学生 添加学生

修改学生信息

姓名
年龄
性别
班级
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!