当前位置:网站首页>(PHP graduation project) based on PHP online travel website management system to obtain
(PHP graduation project) based on PHP online travel website management system to obtain
2022-07-28 06:18:00 【BiShe source code library】
be based on php Online travel website management system
Online travel website management system is based on php Programming languages and mysql Database development bs Architecture system , The system is divided into two roles: user and administrator , Users can view tourist routes , The scheduled tour route includes hotels , Scenic spot information , Generate order , Check travel information , Share your experience online , Post messages and other functions ; Administrators manage tourist routes , The hotel , Scenic spot , Leaving a message. , evaluation , Order information . This design has complete functions , Code comments are clear , For a php Graduation design and php Curriculum design reference and learning .
One . Technical environment
php edition : 5.2 above
development tool : notepad++,sublime,phpstorm All right
database : mysql
The server : apache
Integrated environment : phpstudy
Detailed technical :HTML+CSS+JS+PHP+MYSQL+PhpStudy
Two . Project documents

3、 ... and . system function

Four . Code example
<?php
// +----------------------------------------------------------------------
// | Login function
// | Design thinking , Get the account and password entered by the user , Verify the data entered by the user , Verification passed ,
// | Save the login information of the user to the database , And generate cookie, Prompt the user to log in successfully
// +----------------------------------------------------------------------
// Reference commonly used functions
require_once('../../../config/config.php');
// Get the login username
$name = $_POST['name'];
// Get the user's login password
$password = $_POST['password'];
// Get the login role
$role = $_POST['role'];
// Judge whether the user name entered by the user is empty
if (!$name) {
// If it is empty , Return to the prompt message
ajaxReturn(0, ' Please enter a user name ');
}
// Judge whether the password entered by the user is empty
if (!$password) {
ajaxReturn(0,' Please input a password ');
}
//sql sentence
$sql = "SELECT * FROM users WHERE name='$name' AND password='$password'";
// Query database user records ,fetchOne Function in mysql.php in
$result = fetchOne($link,$sql);
// If this user is not queried
if(!$result) {
ajaxReturn(0,' I'm sorry , Wrong login and password !');
}else {
// Save the user's session
$user = array(
'id'=>$result['id'],
'name'=>$result['name'],
'avatar' =>$result['avatar'],
'role'=>$result['role']
);
// If the user logs in
if($role == 1) {
if($result['role'] == 1){
// Set up session, Failure time 1 Hours
$_SESSION["user"]=$user;
ajaxReturn(1,' congratulations , Login successful !');
}else{
ajaxReturn(0,' I'm sorry , You are not a user !');
}
}
// If you are an administrator, log in
if($role == 2 ) {
// Determine whether you are an administrator
if($result['is_admin'] == 1) {
// Set up session, Failure time 1 Hours
$_SESSION["admin"]=$user;
// Prompt for successful login
ajaxReturn(2,' congratulations , Login successful !');
}else{
// If it's not the Administrator , Give tips
ajaxReturn(0,' I'm sorry , You're not the administrator !');
}
}
}
5、 ... and . Project screenshots








边栏推荐
- AEM线上产品推介会---线缆认证测仪
- 使用MS图表控件创建基本报表
- Deep learning (self supervision: simple Siam) -- Exploring simple Siamese representation learning
- Reading experience of protecting against DNN model steaming attacks
- 深度学习(二)走进机器学习与深度学习编程部分
- Scenario solution of distributed cluster architecture: cluster clock synchronization
- 《AdaFace: Quality Adaptive Margin for Face Recognition》用于人脸识别的图像质量自适应边缘损失
- 硬件电路设计学习笔记2--降压电源电路
- 关于隔离电源断电瞬间MOSFET损坏问题分析
- Difference between shallow copy and deep copy
猜你喜欢

GF(2^8)的加法与乘法计算

深度学习(一):走进机器学习与深度学习理论部分

基于tensorflow搭建神经网络

Differences between processes and threads

使用MS图表控件创建基本报表

Deep learning (incremental learning) - iccv2022:continuous continuous learning

1、 Amd - openvino environment configuration

USB Network Native Driver for ESXi更新到支持ESXi7.0.1

怎么看SIMULINK直接搭的模块的传递函数

Overview of unconstrained low resolution face recognition II: heterogeneous low resolution face recognition methods
随机推荐
Paper reading notes of field low resolution face recognition based on selective knowledge extraction
Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
Deep learning (incremental learning) -- iccv2021:ss-il: separated softmax for incremental learning
基于差值扩展的可逆水印方法
Research on threat analysis and defense methods of deep learning data theft attack in data sandbox mode
D2sc-gan: low resolution face recognition of classroom scenes based on dual depth and shallow channel generation confrontation network
Differences between processes and threads
Difference between shallow copy and deep copy
神经网络优化
光伏发电系统——mppt最大功率点追踪
EIGamal cryptosystem description
VB-ocx应用于Web
ESXi 7.0 Update 1c中加入的systemMediaSize启动选项
四、模型优化器与推理引擎
Scenario solution of distributed cluster architecture: cluster clock synchronization
针对大量数据,MATLAB生成EXCEL文件并进行排版处理的源码
Tf.keras build neural network function expansion
Which enterprises are suitable for small program production and small program development?
CString转char[]函数
3、 Openvino practice: image classification