<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>用户订单管理</title>
<style>
body {
background-color: #DCDCDC;
}
h1 {
font-weight: 40px;
text-align: center;
}
</style>
</head>
<body>
<?php
session_start();
if($_SESSION['login_status']!='ok'){
echo "<script type='text/javascript'>alert('请先登录!');window.location.href='index_hou.html';</script>";
}
?>
<link rel="stylesheet" href="./css/style.css">
<div id="head">
<h1>用户订单管理</h1>
</div>
<table border="1">
<tr>
<td>订单ID</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["order_id"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>用户ID</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["user_id"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>订单金额</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["sum_price"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>收货人姓名</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["username"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>收货地址</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["addr"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>收货电话</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["tel"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>收货人邮箱</td>
<?php
// 此时嵌入PHP代码用于将数据库中的数据,打印到页面进行显示
# 1.连接数据库(认证链接)
$conn = @mysqli_connect('localhost','root','root');
# 2.设置套接字
$sql = "set names utf-8";
$res = mysqli_query($conn,$sql);
# 3.选择数据库
$sql = "use book";
$res = mysqli_query($conn,$sql);
# 4.查找需要打印的数据
$sql = "select * from order_msg";
$res = mysqli_query($conn,$sql);
# 5.循环打印数据
while(!!$row = mysqli_fetch_array($res)){
echo "<td>".$row["email"]."</td>";
}
# 6.关闭数据库
mysqli_close($conn);
?>
</tr>
<tr>
<td>订单编号</td>
<?php
没有合适的资源?快使用搜索试试~ 我知道了~
PHP网站编程技术-PHP综合实验-PHP网上书店源码
共41个文件
php:22个
jpg:11个
html:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 9 下载量 159 浏览量
2021-10-28
11:46:59
上传
评论 3
收藏 2.88MB RAR 举报
温馨提示
PHP网站编程技术-PHP综合实验源码
资源推荐
资源详情
资源评论
收起资源包目录
PHP网上书店.rar (41个子文件)
网上书店
goods_mod.php 1KB
goods.php 8KB
user.php 8KB
settle.php 1KB
exit_ad.php 536B
exit.php 481B
img
2.jpg 326KB
11.jpg 60KB
8.jpg 137KB
6.jpg 176KB
1.jpg 692KB
4.jpg 451KB
5.jpg 527KB
9.jpg 257KB
10.jpg 62KB
7.jpg 147KB
3.jpg 122KB
admin_process.php 1KB
cancel.php 197B
user_del.php 794B
order_del_1.php 645B
order_mod.php 1KB
goods_del.php 640B
register.html 1KB
settle.html 2KB
admin.php 1KB
login_process.php 1KB
login.php 979B
user_mod.php 948B
cart.php 1KB
css
swiper.min.css 19KB
style.css 420B
order.php 17KB
book.php 9KB
register.php 2KB
order_del_2.php 635B
index_qian.php 1KB
JS
jquery-3.3.1.js 265KB
swiper.min.js 126KB
jquery-3.3.1.min.js 85KB
index_hou.html 1KB
共 41 条
- 1
我慢慢地也过来了
- 粉丝: 5874
- 资源: 3759
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页