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
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
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