!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
html xmlns=""
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
title会员查询系统/title
/head
body
form id="form1" name="form1" method="post" action="test.php"
p
label for="name"/label
input type="text" name="name" id="name" /
/p
p
label for="vipid"/label
input type="text" name="vipid" id="vipid" /
/p
p
input type="submit" name="button" id="button" value="https://www.04ip.com/post/查询" /
/p
/form
/body
/html
然后我给你一个test.php的文件代码php查询数据全显示出来:
?php
$name=trim($_POST['name']);
$vipid=trim($_POST['vipid']);
$con = mysql_connect("127.0.0.1","数据库用户名","数据库密码");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$a=mysql_select_db("数据库名字", $con);
$sql="select * from kh_customer where name = '$name' and vipid = '$vipid'";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . $row['data'];
echo "br /";
}
mysql_close($con);
?
页面美化自己去搞php查询数据全显示出来!只能帮你这么多了
【php查询数据全显示出来 php数据库查询结果处理】php查询数据全显示出来的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于php数据库查询结果处理、php查询数据全显示出来的信息别忘了在本站进行查找喔 。
推荐阅读
- 新媒体如何让我们变得孤独,新媒体如何改变世界
- gis共享边工具在哪里,gis数据共享的方式
- 怎么给老婆发空间视频号,把老婆发空间的标题
- 包含棋牌游戏开发一般多钱的词条
- python统计库的函数 python用于统计的函数
- 直播单反用什么采集卡,直播用什么单反好
- SQLServer中查询计划在哪里看,sql 查询计划
- uncle直播录屏,universe录屏
- 求c语言函数大全 c语言求函数值