<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>留言板信息</title>
<style type="text/css">
#cap{color: #a26fab;font-size: 20px;}
#tb{width:300px;border:1px solid #607d8b;box-shadow:10px 10px 5px rgba(244, 67, 54, 0.19);cellspaceing="10";}
.class{color: red;}
</style>
</head>
<body>
<center>
<table id="tb" >
<caption id="cap">留言内容</caption>
<!-- <tr><th>用户</th><th>标题</th><th>内容</th></tr> -->
<?PHP
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "messageboard";
//创建连接
$conn = new mysqli($servername,$username,$password,$dbname);
//检测连接
if($conn->connect_error)
{
die("Connection failed:" .$conn->connect_error);
}
$result = $conn->query("select * from mymessage");//执行查询
while($row = mysqli_fetch_assoc($result))//将result结果集中查询结果取出一条
{?>
<!-- echo"<tr><td>".$row["name"]."</td><td>".$row["title"]."</td><td>".$row["content"]."</td><tr>"; -->
<tr bgcolor="white">
<td>
用户:<font color="#ff9800"><?=$row['name']?></font>
标题:<font color="#ff9800"><?=$row['title'] ?></font>
</td>
</tr>
<tr bgcolor="white">
<td>
内容:<font color="#ff9800"><?=$row['content']?></font><br><br>
<div align="right"><a href="testlocal.html"><font color="#8bc34a">增加</font></a> | <a href="del.php?id=<?=$row['content'];?>"><font color="#00bcd4">删除</font></a></div>
</td>
</tr>
<?php } ?>
</table>
</center>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
html+php+mysql留言板功能的实现
共30个文件
css:6个
php:5个
js:5个
1星 需积分: 50 174 下载量 15 浏览量
2017-06-08
09:27:11
上传
评论 16
收藏 333KB RAR 举报
温馨提示
通过html+php+mysql写的留言板功能 实现查看 增加 删除的功能 解决了上传中文乱码的情况
资源推荐
资源详情
资源评论
收起资源包目录
数据库存储.rar (30个子文件)
数据库存储
mess.php 2KB
server.php 679B
bootstrap-3.3.7-dist
fonts
glyphicons-halflings-regular.woff2 18KB
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.svg 106KB
glyphicons-halflings-regular.eot 20KB
js
npm.js 484B
bootstrap.js 68KB
bootstrap.min.js 36KB
css
bootstrap.css 143KB
bootstrap-theme.min.css 23KB
bootstrap.css.map 380KB
bootstrap.min.css 149KB
bootstrap-theme.min.css.map 25KB
bootstrap-theme.css.map 47KB
bootstrap.min.css.map 529KB
bootstrap-theme.css 26KB
testlocal.html 4KB
mess.html 966B
uploadSingleImg
server.php 153B
js
tools.js 7KB
pictureHandle.js 3KB
css
uploadSingleImg.css 519B
style.css 119B
image
pwd.png 1KB
delete.png 1KB
index.html 2KB
del.php 465B
conn.php 883B
共 30 条
- 1
资源评论
- salomonfaith2017-06-08如果能有个详细说明,并且附上数据库文件就有点参考价值亲亲小朱儿2017-06-19好的 下次注意 谢谢
亲亲小朱儿
- 粉丝: 6
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功