基本信息
源码名称:php简单留言功能(入门级示例,含数据库脚本)
源码大小:7.49KB
文件格式:.zip
开发语言:PHP
更新时间:2018-04-26
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!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 ly order by id desc"; $query=mysqli_query($conn,$sql); while($row=mysqli_fetch_array($query)){ ?> <tr bgcolor="#eff3ff"> <td><font color="red">姓名:</font> <?php echo $row['xingming'];?> </td> </tr> <tr bgcolor="#eff3ff"> <td> <font color="red">手机:</font> <?php echo $row['shouji'];?> </td> </tr> <tr bgcolor="#eff3ff"> <td><font color="red">区域:</font> <?php echo $row['quyu'];?> </td> </tr> <tr bgColor="#ffffff"> <td>内容:<?php echo $row['liuyan'];?></td> </tr> <tr bgColor="#ffffff"> <td><div align="right">时间:<?php echo $row['lastdate'];?></td> </tr> <?php } ?> <tr bgcolor="#f0fff0"> <td><div align="right"><a href="add.html">返回留言</a> </td> </tr> <tr bgcolor="#f0fff0"> <br><center><a href="list.php">列表</a> <a href="del.php">删除</a></center></tr> </table> </html> <?php //释放结果集 mysqli_free_result($query); //断开服务器连接 mysqli_close($conn); ?>