host.php显示数据页面<?php
$connect = mysql_connect("$localhost" , "$root" , "");
mysql_select_db(yy) $query ="insert into yydata(name_yy,email_yy,contents) values ('$name_yy','$email_yy', '$contents')";
$rel = mysql_query($query,$connect); $query="select * from yydata";
$rel=mysql_query($query,$connect);
echo "<table width=100%>
<tr>
<td width=15%>姓名</td>
<td width=30%>email</td>
<td width=40%>内容</td>
</tr>";
while($arr = mysql_fetch_array($rel)) {
echo "<table width=100%><tr>";
echo "<td width=15%>".$arr["name_yy"]."</td>";
echo "<td width=30%>".$arr["email_yy"]."</td>";
echo "<td width=40%>".$arr["contents"]."</td>";
echo "</tr></table>"; }
?>
$connect = mysql_connect("$localhost" , "$root" , "");
mysql_select_db(yy) $query ="insert into yydata(name_yy,email_yy,contents) values ('$name_yy','$email_yy', '$contents')";
$rel = mysql_query($query,$connect); $query="select * from yydata";
$rel=mysql_query($query,$connect);
echo "<table width=100%>
<tr>
<td width=15%>姓名</td>
<td width=30%>email</td>
<td width=40%>内容</td>
</tr>";
while($arr = mysql_fetch_array($rel)) {
echo "<table width=100%><tr>";
echo "<td width=15%>".$arr["name_yy"]."</td>";
echo "<td width=30%>".$arr["email_yy"]."</td>";
echo "<td width=40%>".$arr["contents"]."</td>";
echo "</tr></table>"; }
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货