PHP学生成绩管理,使用MySQL数据库,界面简洁,适合当做学生期末作业,有数据库和PHP文件源码,没有使用任何框架,都是使用简单的PHP代码。
实现功能包括:学生登录 管理员登录 学生信息管理 学生成绩查询 学生成绩增删改查 学生信息增删改查 退出登录。
系统测试账号 管理员 admin 密码 admin 学生账号 1816212115 密码123456
│ conn.php 数据库连接配置文件
│ index.php
│ login.php
│ loginout.php
│ myStudentInfo.php
│ nav.php
│ scoreAdd.php
│ scoreDelete.php
│ scoreList.php
│ scoreUpdate.php
│ studentAdd.php
│ studentDelete.php
│ studentList.php
│ studentUpdate.php
│ tree.txt
│ 使用说明.txt
DROP TABLE IF EXISTS `admininfo`;
CREATE TABLE `admininfo` (
`adminid` int(11) NOT NULL,
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`addtime` datetime NULL DEFAULT NULL,
PRIMARY KEY (`adminid`) USING BTREE
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of admininfo
-- ----------------------------
INSERT INTO `admininfo` VALUES (1, 'admin', 'admin', '2019-12-11 10:24:55');
-- ----------------------------
-- Table structure for scoreinfo
-- ----------------------------
DROP TABLE IF EXISTS `scoreinfo`;
CREATE TABLE `scoreinfo` (
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`xuehao` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`xueyuan` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`sex` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`classname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`html` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`css` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of scoreinfo
-- ----------------------------
INSERT INTO `scoreinfo` VALUES ('刘硕硕', '1816212115', '软件学院', '男', '193', '75', '55');
INSERT INTO `scoreinfo` VALUES ('郑直', '1816212117', '软件学院', '女', '193', '45', '72');
INSERT INTO `scoreinfo` VALUES ('闫云龙', '1816212121', '软件学院', '男', '193', '51', '56');
INSERT INTO `scoreinfo` VALUES ('周兵辉', '1816212122', '软件学院', '男', '193', '82', '71');
INSERT INTO `scoreinfo` VALUES ('赵帅', '1816212124', '软件学院', '男', '193', '45', '81');
INSERT INTO `scoreinfo` VALUES ('程洪波', '1816212130', '软件学院', '女', '193', '57', '85');
-- ----------------------------
-- Table structure for studentinfo
-- ----------------------------
DROP TABLE IF EXISTS `studentinfo`;
CREATE TABLE `studentinfo` (
`xuehao` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`xueyuan` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`sex` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`classname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`qq` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`xuehao`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of studentinfo
-- ----------------------------
INSERT INTO `studentinfo` VALUES ('1816212115', '刘硕硕', '软件学院', '女', '1813', '15617453097', '1319476351', '123456');
INSERT INTO `studentinfo` VALUES ('1816212117', '郑直', '软件学院', '男', '181', '15517966069', '1394316209', '123456');
INSERT INTO `studentinfo` VALUES ('1816212121', '闫云龙', '软件学院', '男', '181', '15226089999', '1435295666', '123456');
INSERT INTO `studentinfo` VALUES ('1816212122', '周兵辉', '软件学院', '男', '181', '15515230011', '1187087712', '123456');
INSERT INTO `studentinfo` VALUES ('1816212124', '赵帅', '软件学院', '男', '181', '17335595989', '2605939633', '123456');
INSERT INTO `studentinfo` VALUES ('1816212130', '程洪波', '软件学院', '男', '181', '13087058800', '1079121381', '123456');
INSERT INTO `studentinfo` VALUES ('1816212134', '张丛建', '软件学院', '男', '181', '15639962222', '740731828', '123456');
INSERT INTO `studentinfo` VALUES ('1816212138', '陈浡豪', '软件学院', '男', '181', '13213126338', '2733363897', '123456');
INSERT INTO `studentinfo` VALUES ('1816212139', '成飞帆', '软件学院', '男', '181', '18639189222', '1781205049', '123456');
SET FOREIGN_KEY_CHECKS = 1;