标题:新人 帮我写下 剩下不会写了 php删除
取消只看楼主
yc4360595
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-3-4
结帖率:0
已结贴  问题点数:20 回复次数:1 
新人 帮我写下 剩下不会写了 php删除
<body>
<table summary="This table shows the years 2004 through 2007"border="2">
<caption>输出</caption>
<tr>
   
    <th scope="col">Id</th>
    <th scope="col">名字</th>
    <th scope="col">城市</th>
    <th scope="col">性别</th>
    <th scope="col">生日</th>
    <th scope="col">操作</th>
</tr>
<form     method="post"    action="#"    ></form>

<?php


$hostname="127.0.0.1";
$username="root";
$password="123456";
$link=mysql_connect($hostname,$username,$password);
mysql_select_db("test2");
$sql2="select * from yc1";
$result1=mysql_query($sql2);
$id=0;
$sql="delete from yc1 where=$id";
while($row=mysql_fetch_array($result1)){

?>
<tr>
    <th scope="col"><?php echo $row['id']?> </th>   
    <th scope="col"><?php echo $row['name']?> </th>
    <th scope="col"><?php echo $row['city'] ?></th>
    <th scope="col"><?php echo $row['sex'] ?></th>
    <th scope="col"><?php echo $row['birth'] ?></th>
    <th><input type="submit"    value="删除"        name="$id"/></th>

???
???
??
接下来 怎么写啊····急啊  各位大侠 帮下我
搜索更多相关主题的帖子: sql 
2011-09-16 19:04
yc4360595
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-3-4
得分:0 
   怎么 没人理我啊·····
光是 看的    哎········
2011-09-17 07:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-350089-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.919297 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved