Home > Backend Development > PHP Tutorial > js-php方法里 for 循环长度为 0求 高手 讲解

js-php方法里 for 循环长度为 0求 高手 讲解

WBOY
Release: 2016-06-02 11:34:33
Original
974 people have browsed it

jsphp

我做一个datagrid 删除功能 当我全选时获取所选择的行的id 通过ajax 跳到 自己写的sql方法里 例如 LY.Ajax.request({
url sql路径
surress:function (){
},parems:function(){
act:sql语句
did:12,4,5,id
}
})
在sql方法里这样接受 $did=$_POST['did'];
然后用for($i=0;count($did);$++){
$dd=" where 1=0 or id=$did[$i]"
}这样写循环不出数据来 我想用一条语句根据ID删除多个行 但是 循环读不出来 怎么回事求讲解

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template