前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >PHP项目:留言板开发(查看功能)

PHP项目:留言板开发(查看功能)

作者头像
贵哥的编程之路
发布2021-10-09 15:59:18
1.9K0
发布2021-10-09 15:59:18
举报

list.php

代码语言:javascript
复制
<!DOCTYPE html>
 <html lang="utf-8">
 <head>
 <?php
 include ("conn.php");
 ?> 
 <link href="css.css" rel="stylesheet" type="text/css">
 </head>
 
 
 <table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef" >
 <?php
 $sql="select * from message order by id desc";
 $query=mysql_query($sql);
 while($row=mysql_fetch_array($query)){ ?>
 
 <tr bgcolor="#eff3ff">
 <td>标题: <?php echo $row['title'];?> <font color="red">用户: <?php echo $row['user'];?> </td>
 </tr>
 <tr bgColor="#ffffff">
 <td>发表内容:<?php echo $row['content'];?></td>
 </tr>
 <tr bgColor="#ffffff">
 <td><div align="right">时间:<?php echo $row['lastdate'];?></td>
 </tr>
 <?php } ?>
 <tr bgcolor="#f0fff0">
 <td><div align="right"></td>
 </tr>
 </table>
 </html>

地址栏上输入:localhost/list.php

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-10-04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档