当前位置:网站首页>PHP book borrowing management system, with complete functions, supports user foreground management and background management, and supports the latest version of PHP 7 x. Database mysql
PHP book borrowing management system, with complete functions, supports user foreground management and background management, and supports the latest version of PHP 7 x. Database mysql
2022-07-04 09:30:00 【qq_ three billion three hundred and fifty-five million one hund】
php Book lending management system , Support book borrowing , Return books , Book reservation , The library information management system mainly realizes the classification of library information 、 Classified statistics management , And manage the basic information of books , So that users can quickly find the resources they need . In this system , Users can add 、 Modify and delete book information . It consists of front desk and back desk .
One 、 Functional specifications
1、 Realize to mysql Basic operation of database , Use session Save user name .
2、 View books in pages .
3、 After logging in, you can add books .
4、 Search books by category .
5、 Edit book information .
6、 Delete book information .
7、 Front desk user registration .
8、 Front desk user login .
9、 Background user login .
10、 Front desk users borrow and return books .
11、 Background query user borrowing statistics .
12、 The background administrator can modify the login password .
13、 Foreground user password retrieval function
14、 Front page search book function
15、 The front desk can count the borrowing situation of users
16、 Background user management function User login can be disabled and allowed
17、 The backstage administrator returns books
The new functions are as follows
【 backstage - Book classification management 】
【 backstage - Book reservation management 】
【 The front desk - Book reservation Reservation record query 】
【 The front desk - Classification query shows 】
【 Optimized all front-end display interfaces and Background management interface Are the simplest html Code beautification It's convenient for you to take it and modify it yourself 】
All pictures in the video can be changed at will There are project directory summaries
All books in the video are classified The name of the book Can be changed in the background You can modify it without understanding the code
Project description :php The book management system
The library information management system mainly realizes the classification of library information 、
Sub language management , And manage the basic information of books ,
So that users can quickly find the resources they need . In this system ,
、 Users can add 、 Modify and delete book information .
It consists of front desk and back desk .
3、 ... and 、 Technical specification
1、 Realize to mysql Add, delete, change and check the database Paging query Fuzzy search ;
2、 Use config.php The configuration file connects to the database uniformly , It is convenient to modify database connection properties .
3、 The notes are very detailed , There are comments where changes are needed . Users can customize and modify . It is very helpful for beginners .
Screenshot of project operation effect :
Rendering of system homepage

Display book information by category

The user login

After the user logs in, his personal information is displayed

User borrowing

User registration

Retrieve password

backstage - Administrator login

Background administrator changes password

backstage - Borrowing information query

backstage - Add book classification

backstage - Book classification management

backstage - Statistics of book classification quantity

backstage - Book management

backstage - Book search

backstage - Books add

backstage - Book reservation records

backstage - User management

Database part code
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`password` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = gb2312 COLLATE = gb2312_chinese_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES (1, 'admin', '123456');
-- ----------------------------
-- Table structure for lend
-- ----------------------------
DROP TABLE IF EXISTS `lend`;
CREATE TABLE `lend` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`book_id` int(6) NOT NULL,
`book_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`lend_time` datetime NULL,
`user_id` int(3) NOT NULL,
PRIMARY KEY (`id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = gb2312 COLLATE = gb2312_chinese_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of lend
-- ----------------------------
INSERT INTO `lend` VALUES (2, 41, '', '2019-12-27 19:39:28', 19);
INSERT INTO `lend` VALUES (3, 39, '', '2019-12-27 19:39:28', 19);
INSERT INTO `lend` VALUES (4, 41, '', '2020-02-19 00:00:00', 16);
INSERT INTO `lend` VALUES (5, 43, '', '2020-02-05 00:00:00', 4);
INSERT INTO `lend` VALUES (6, 1, '', '2020-01-29 00:00:00', 5);
INSERT INTO `lend` VALUES (7, 36, '', '2020-03-04 00:00:00', 16);
INSERT INTO `lend` VALUES (8, 37, '', '2020-02-23 14:02:07', 16);
-- ----------------------------
-- Table structure for sorttype
-- ----------------------------
DROP TABLE IF EXISTS `sorttype`;
CREATE TABLE `sorttype` (
`sortid` int(11) NOT NULL AUTO_INCREMENT,
`sortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`sortcontent` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`sortid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of sorttype
-- ----------------------------
INSERT INTO `sorttype` VALUES (1, ' Web art 1', ' Web art introduction ');
INSERT INTO `sorttype` VALUES (2, ' network marketing ', ' Introduction to network marketing ');
INSERT INTO `sorttype` VALUES (3, 'asp Programming ', 'asp Programming Introduction ');
INSERT INTO `sorttype` VALUES (4, 'php Programming ', 'php Programming Introduction ');
INSERT INTO `sorttype` VALUES (6, ' software development ', ' Introduction to software development ');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`studentid` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`name` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`password` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`idcard` varchar(18) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`email` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`tel` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`address` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`regtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`status` int(11) NULL DEFAULT 0,
`depts` varchar(255) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = gb2312 COLLATE = gb2312_chinese_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (5, '124500435', '124100436', 'e10adc3949ba59abbe56e057f20f883e', '124100435', '[email protected]', '13245678905', '124100435', '2020-01-11 13:31:17', 1, ' department A');
INSERT INTO `user` VALUES (16, '124500435', '124100435', 'e10adc3949ba59abbe56e057f20f883e', '533222199305102032', '[email protected]', '13245678905', '124100435', '2020-01-11 13:31:18', 0, ' The Marketing Department ');
INSERT INTO `user` VALUES (17, '132456789', '789789789', 'e10adc3949ba59abbe56e057f20f883e', '531324567891324567', '[email protected]', '13245678905', '132456789 Address of the test ', '2020-01-11 13:31:18', 0, ' The sales department ');
INSERT INTO `user` VALUES (18, '123456789', '123456789', 'e10adc3949ba59abbe56e057f20f883e', '123456789123456789', '[email protected]', '12345678912', '123456789', '2020-01-11 13:31:19', 1, ' Finance Department ');
INSERT INTO `user` VALUES (19, '123456789', '123456789', 'e10adc3949ba59abbe56e057f20f883e', '123456789123456789', '[email protected]', '123456789', '123456789', '2020-01-11 13:31:19', 0, ' department 2');
INSERT INTO `user` VALUES (20, '789456789', '789456789', 'e10adc3949ba59abbe56e057f20f883e', '789456789789456789', '[email protected]', '78945678978', '789456789 Address of the test ', '2020-01-11 13:31:16', 0, ' department 2');
INSERT INTO `user` VALUES (21, '789789789', '789789789', 'e10adc3949ba59abbe56e057f20f883e', '789789789789789789', '[email protected]', '78978978978', '789789789 Address ', '2020-01-11 13:31:21', 0, ' department 2');
-- ----------------------------
-- Table structure for yuyue
-- ----------------------------
DROP TABLE IF EXISTS `yuyue`;
CREATE TABLE `yuyue` (
`yuyueid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`bookname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`starttime` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`endtime` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`addtime` datetime NULL DEFAULT NULL,
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`yuyueid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of yuyue
-- ----------------------------
INSERT INTO `yuyue` VALUES (1, '124100435', ' Introduction to network marketing ', '2020-01-08', '2020-01-22', '2020-01-11 21:01:49', ' The appointment was successful ');
INSERT INTO `yuyue` VALUES (2, '124100435', 'asp Novice learning ', '2020-01-08', '2020-01-15', '2020-01-11 21:02:08', ' The appointment was successful ');
INSERT INTO `yuyue` VALUES (3, '124100435', 'asp200', '2020-02-25', '2020-02-26', '2020-02-23 14:01:13', ' The appointment was successful ');
INSERT INTO `yuyue` VALUES (4, '124100435', 'html5+css3', '2020-02-04', '2020-02-24', '2020-02-23 14:41:18', ' The appointment was successful ');
-- ----------------------------
-- Table structure for yx_books
-- ----------------------------
DROP TABLE IF EXISTS `yx_books`;
CREATE TABLE `yx_books` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET gbk COLLATE gbk_chinese_ci NOT NULL,
`price` decimal(10, 2) NOT NULL,
`uploadtime` datetime NULL,
`type` varchar(10) CHARACTER SET gbk COLLATE gbk_chinese_ci NOT NULL,
`total` int(11) NULL DEFAULT NULL,
`leave_number` int(11) NULL DEFAULT NULL,
`picurl` varchar(255) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci NULL DEFAULT NULL,
`content` varchar(255) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci NULL DEFAULT NULL,
`author` varchar(255) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3454 CHARACTER SET = gb2312 COLLATE = gb2312_chinese_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of yx_books
-- ----------------------------
INSERT INTO `yx_books` VALUES (1, 'PHP100', 50.00, '2019-12-27 19:39:28', 'PHP Programming ', 5, 5, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (2, 'asp200', 50.36, '2019-12-27 19:39:28', 'ASP Programming ', 1, 0, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (3, ' Introduction to network marketing ', 32.45, '2019-12-27 19:39:28', ' network marketing ', 4, 4, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (26, 'html5+css3', 23.46, '2019-12-27 19:39:28', ' Web art ', 5, 4, 'upload/3738222.jpg', NULL, ' Wang Wu ');
INSERT INTO `yx_books` VALUES (36, ' Software requirements analysis ', 23.17, '2019-12-27 19:39:28', ' software development ', 8, 7, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (37, 'asp introduction ', 22.00, '2019-12-27 19:39:28', 'ASP Programming ', 7, 2, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (39, 'asp Novice learning ', 88.00, '2019-12-27 19:39:28', 'ASP Programming ', 10, 7, 'upload/3738222.jpg', NULL, ' Li Si ');
INSERT INTO `yx_books` VALUES (40, 'php Novice learning ', 33.00, '2019-12-27 19:39:28', 'php Programming ', 8, 0, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (41, ' classic php Programming ', 66.00, '2019-12-27 19:39:28', 'php Programming ', 22, 18, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (43, 'php test 1', 10.00, '2019-12-27 19:39:28', 'php Programming ', 10, 10, 'upload/3738222.jpg', NULL, ' Zhang San ');
INSERT INTO `yx_books` VALUES (454, '3324', 3324.00, '2020-01-12 04:56:27', '3324', 1, 0, 'upload/3738222.jpg', '332433243324', ' Zhang San ');
INSERT INTO `yx_books` VALUES (3453, '3453', 3453.00, '2020-01-12 04:55:29', '3453', 1, 0, 'upload/3738222.jpg', '3453', ' Zhang San ');
SET FOREIGN_KEY_CHECKS = 1;
The source code is directly placed in apache The server can run , And the database sql Just import the file , Can be in PHP Development tools sublime,phpstorm,notpadd++,Dreamweaver,hbuilder,Eitplus,PHPstudy,wamp,xampp,appserver All etc. PHP Run in development tools .
边栏推荐
- How should PMP learning ideas be realized?
- C language - Introduction - Foundation - syntax - [identifier, keyword, semicolon, space, comment, input and output] (III)
- DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
- 【leetcode】540. A single element in an ordered array
- [on February 11, 2022, the latest and most fully available script library collection of the whole network, a total of 23]
- Nurse level JDEC addition, deletion, modification and inspection exercise
- In depth research and investment strategy report on China's hydraulic parts industry (2022 Edition)
- Clion console output Chinese garbled code
- 【leetcode】29. Divide two numbers
- Jianzhi offer 09 realizes queue with two stacks
猜你喜欢

Mac platform forgets the root password of MySQL

Solve the problem of "Chinese garbled MySQL fields"

C语言-入门-基础-语法-数据类型(四)

How to ensure the uniqueness of ID in distributed environment

2022-2028 global optical transparency industry research and trend analysis report
](/img/3f/4d8f4c77d9fde5dd3f53ef890ecfa8.png)
C语言-入门-基础-语法-[运算符,类型转换](六)

GoLand environment variable configuration

2022-2028 global strain gauge pressure sensor industry research and trend analysis report

2022-2028 global visual quality analyzer industry research and trend analysis report

2022-2028 research and trend analysis report on the global edible essence industry
随机推荐
Launpad | Basics
Implementation principle of redis string and sorted set
2022-2028 global small batch batch batch furnace industry research and trend analysis report
《网络是怎么样连接的》读书笔记 - 认识网络基础概念(一)
Awk from getting started to digging in (4) user defined variables
Research Report on the current market situation and development prospects of calcium sulfate whiskers in China (2022 Edition)
《网络是怎么样连接的》读书笔记 - FTTH
Development trend and market demand analysis report of high purity tin chloride in the world and China Ⓔ 2022 ~ 2027
Jianzhi offer 09 realizes queue with two stacks
C语言-入门-基础-语法-[主函数,头文件](二)
什么是uid?什么是Auth?什么是验证器?
How does idea withdraw code from remote push
什么是权限?什么是角色?什么是用户?
Reading notes of how the network is connected - understanding the basic concepts of the network (I)
Nurse level JDEC addition, deletion, modification and inspection exercise
UML 时序图[通俗易懂]
What is uid? What is auth? What is a verifier?
保姆级JDEC增删改查练习
Service call feign of "micro service"
Launchpad x | mode