"/>   ">

Home >Backend Development >PHP Tutorial >不能删除指定的语句 总是从最后一个开始删除 奇怪啦,该怎么处理

不能删除指定的语句 总是从最后一个开始删除 奇怪啦,该怎么处理

WBOY
WBOYOriginal
2016-06-13 10:21:33899browse

不能删除指定的语句 总是从最后一个开始删除 奇怪啦
[code=PHP][/code]

form id="form1" name="form1" method="post" action="lianxi_ok.php">

 


 
 
 
 
 
 
 
include("../conn.php");
$arr=mysql_query("select * from lianxi",$conn); //查询数据
/*使用while语句循环mysql_fetch_array()函数返回的数组*/
while($result=mysql_fetch_array($arr)){
?>
 
 
 
 
 
   
 
 
  } //结束while循环
?>
 
QQ 电话 地址 作者 删除

 
 

  


------解决方案--------------------
PHP code
include("../conn.php"); //包含conn.php文件if(isset($_GET['id'])){    $delete=mysql_query("delete from lianxi where id='".$_GET['id']."'",$conn);    if($delete){        echo "<script> alert('删除成功!'); window.location.href='index.php'</script>";    }else{        echo "<script> alert('删除失败!'); window.location.href='index.php'</script>";    }}<div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn