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如何调用dll ? PHP 如何取得汉字(字符串)的Unicode编码 且相互转换 如何去除字符串中非汉字、非字母、非数字的字符? 聘PHP兼职程序员(深圳) 开发一个像这样的工具条,需要什么样的知识呢?有类似作品参考的提供提供啦。特别唠叨,浪子快刀.....等等抽出时间给瞄一瞄吧。 如何动态设置上传文件的临时目录啊? 没有知道PostsQL嘛?怎么没人回复我的问题?急!急!急!知道的请回答。拜托了! /brand/?do=xxx 可以访问 /brand?do=xxx 不能访问,怎么控制? 求大神给指点一下 这个发贴代码怎么写? 发现不了类
<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>