php新手问题 本帖最后由 YZ7891 于 2010-03-19 15:55:23 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 echo ("<form action='10.php' method='post'>");刚才看看楼主发的其他帖子 都没有结贴 <?php ?><html><?php ?>这样 弄好了 谢谢你了我从这里也看到了http://hi.baidu.com/pengpeng5047/blog/item/8a2a1ff46e7fab2ebc3109f5.html<html><body><?php$con=mysql_connect("localhost","root","zhuyun0000");if(!$con){ die("对不起,数据库连接失败!请查询:".mysql_error());}if($_GET[Xname]!=null){ mysql_select_db("yz7893",$con); $sql=mysql_query("select * from person where Name='$_GET[Xname]'"); $row=mysql_fetch_array($sql); if($row['Name']!=null) { echo ("<form action='10.php' method='post'>"); echo ("<table border=1px>"); echo ("<tr><th>姓名</th><th>年龄</th><th>地址</th></tr>"); echo ("<tr><td><input type='text' name='Name' value='{$row['Name']}' /></td><td><input type='text' name='Age' value='{$row['Age']}' /></td><td><input type='text' name='Address' value='{$row['Address']}' /></td></tr>"); echo ("<input type='submit' name='submit' value='修改' />"); echo ("</table></form>"); } else { echo ("对不起,没有找到您需要的数据"); echo ("<a href='6.html'>返回</a>"); }}else{ die("对不起,请不要输入空值");}?></body></html> php显示问题 PHP测试问题 php下载文件的问题 如何配置ipchains防止ddos攻击? zend guard 5问题 关于写入TXT文件的一个小问题 php 如何 接受 多个同一名称的 无素值 PHP避免重复申明函数的解决方案 谁有Web方式收发邮件的PHP代码? PChart 中文不显示,自己导入字体,但是使用时候报错 这个发贴代码怎么写? 发现不了类
<html>
<?php ?>
这样
我从这里也看到了
http://hi.baidu.com/pengpeng5047/blog/item/8a2a1ff46e7fab2ebc3109f5.html<html>
<body>
<?php
$con=mysql_connect("localhost","root","zhuyun0000");
if(!$con)
{
die("对不起,数据库连接失败!请查询:".mysql_error());
}
if($_GET[Xname]!=null)
{
mysql_select_db("yz7893",$con);
$sql=mysql_query("select * from person where Name='$_GET[Xname]'");
$row=mysql_fetch_array($sql);
if($row['Name']!=null)
{
echo ("<form action='10.php' method='post'>");
echo ("<table border=1px>");
echo ("<tr><th>姓名</th><th>年龄</th><th>地址</th></tr>");
echo ("<tr><td><input type='text' name='Name' value='{$row['Name']}' /></td><td><input type='text' name='Age' value='{$row['Age']}' /></td><td><input type='text' name='Address' value='{$row['Address']}' /></td></tr>");
echo ("<input type='submit' name='submit' value='修改' />");
echo ("</table></form>");
}
else
{
echo ("对不起,没有找到您需要的数据");
echo ("<a href='6.html'>返回</a>");
}
}
else
{
die("对不起,请不要输入空值");
}
?>
</body>
</html>