当前位置:网站首页>?实验 7 基于 Mysql 的 PHP 管理系统实现
?实验 7 基于 Mysql 的 PHP 管理系统实现
2022-07-27 05:55:00 【CSDN问答】
实验目的和要求:
1.使学生能够熟练掌握 Mysql 数据库的配置、创建及维护;
2.使学生能够熟练掌握 Mysql 数据表的创建、更新、删除及查询;
3.使学生能够熟练掌握 Mysql 数据库的 Select 语句;
4.使学生能够熟练掌握使用 PHP 操作 Mysql 数据库的方法。 实验内容:
设计并利用 PHP 完成一个简易的图书信息管理系统。要求数据库使用 Mysql 创建,数据库中数据表的设计必须满足需求分析文档中要求,并出具必要的系统 E-R 图。利用 PHP 的函数完成数据库的连接、数据记录的录入、查找、更新及删 除等操作。本系统涉及到的所有数据的录入统一采用 HTML 表单进行录入,并对 必要的数据字段进行判断。
(最终的个人得分的评判根据自己系统的具体设计情况而定)
(1)在 Mysql 客户控制台中,使用命令图书信息管理系统的数据库和表;(2
学时)
(2)使用 PHPMyadmin 工具建立同样的数据库和表。(1 学时)
(3)编写 PHP 程序完成实验题目的功能需求。(3 学时) 实验预作记录:
1、对实验的需求进行分析,并对实验步骤进行规划,画出用户的操作流程图;
2、对实体进行分析,画出试验的 E-R 图,并划出试验的数据流程图;
3、根据实验的需求分析和 E-R 图对数据库结构进行设计,并设计出表之间联系;
4、对数据库进行设计,新建一个数据库,数据库的名字叫 borrow;
5、因为需要注册并保存用户信息,所以需要新建一个表保存读者的信息给这个 表取名为 user_msg,这个表中新建五个字段,把 user_id 设置为主键,里面保存用 户的基本信息;
6、因为管理员不能注册,所以需要新建一张表,里面存放的是管理员的信息, 表名为 admin;
7、新建一张表 book_msg 里面存放的是书籍的信息,包括书的 ID 号,和 ISBN 号;
8、新建表 borrow_msg 里面存放的是借阅的信息表;
9、新建文件 index.html 作为用户的登录界面,并且能够进行用户权限选择,新
建 register,用作用户的注册界面;
10、新建 check_role.php 文件,接受登录表单提交过来的数据,并分析用户是读 者还是系统管理员;
11、新建 admin.php 和 reader.php 两个文件,分别作为读者和管理员的操作界面, 当角色为管理员时进入 admin.php,当角色为普通用户时进入 reader.php;
12、当进入 admin.php 界面时,管理员可以对图书进行信息的录入。可以对信息 进行修改,可以对信息进行删除,可以查询用户的借阅信息
13、建立 add_booK.php 文件,可以添加图书的信息,并且使用 save_book.php
文件保存图书信息;
14、建立 mod_book.php 文件和 del_book.php 文件,执行对图书信息修改和删除;
15、用户进入 reader.php 文件中,可以对图书信息进行查询,并能执行借阅操作;
16、新建 boorrow_book.php 可以对图书进行借阅操作,当点击借阅时,把图书 的借阅状态,改为“1”;
17、对系统进行测试,查看有没有 bug。
边栏推荐
- Interpretation of deepsort source code (II)
- VIVO应用市场APP上架总结
- DNA (deoxyribonucleic acid) supply | carbon nanotube nucleic acid loaded dna/rna material | dna/rna nucleic acid modified magnetic nanoparticles
- 2022 0726 顾宇佳 学习笔记
- Analysis on the current situation and optimization strategy of customer experience management in banking industry
- MySQL quickly compares database table data
- Watermelon book learning Chapter 5 --- neural network
- Interpretation of deepsort source code (I)
- R2LIVE代码学习记录(3):对雷达特征提取
- A Competitive Swarm Optimizer for Large Scale Optimization
猜你喜欢

DNA modified zinc oxide | DNA modified gold nanoparticles | DNA coupled modified carbon nanomaterials

2022 0726 顾宇佳 学习笔记

Visual horizontal topic bug1:filenotfounderror: could not find module 'mvcameracontrol dll‘ (or one of it

Watermelon book learning Chapter 5 --- neural network

DDD Domain Driven Design Notes

Netease Yunxin appeared at the giac global Internet architecture conference to decrypt the practice of the new generation of audio and video architecture in the meta universe scene

Dajiang livox customized format custommsg format conversion pointcloud2

Two ways of multi GPU training of pytorch

DNA research experiment application | cyclodextrin modified nucleic acid cd-rna/dna | cyclodextrin nucleic acid probe / quantum dot nucleic acid probe

VScode连接远程服务器开发
随机推荐
Livox SLAM(带LIO+闭环检测优化)
How MySQL executes query statements
PNA modified polypeptide arms PNA PNA DNA suc aapf PNA suc - (ALA) 3 PNA
MySQL quickly compares database table data
Gbase 8C product introduction
泛型 -- 学会它,好处多多
ESP8266(ESP-12F) 第三方库使用 -- SparkFun_APDS9960 (手势识别)
线性表 -- 栈和队列
Codeforces Round #787 (Div. 3)(7/7)
Quartus:往别人的工程添加.v文件报错
MySQL limit paging query optimization practice
算法--斐波那契数列(Kotlin)
Leetcode series (I): buying and selling stocks
newest! SASAC releases new measures for digital transformation of state-owned enterprises
The vscode run command reported an error: the mark "&" is not a valid statement separator in this version.
Codeforces Round #787 (Div. 3)(7/7)
Details of cross entropy loss function in pytorch
Vscode creates golang development environment and debug unit test of golang
强网杯2021 pwn 赛题解析——babypwn
【Latex格式】双栏双图左右并排有小标题、上下并列有小标题