目标: 使用PHP和MySQL完成以下用户增删改查练习, 新手朋友可以练习参考。
1、添加用户
2、删除用户
3、修改用户
4、查询用户
数据库连接配置文件是 conn.php ,修改成你自己的数据库配置信息!
使用步骤:
1、先创建student数据库
2、创建class9表:
create table class9(
id int primary key auto_increment,
name varchar(10) not null,
age tinyint not null
);
3、解压缩把php文件拷贝到网站根目录下运行。
下载链接:https://pan.baidu.com/s/1-67nh0v5Ni6qRoaBI8wOcA 密码:jl97