这个简单,代码如下:
或者
Unknown column 'ID' in 'where clause
这句话的大概意思是,未知的列'ID',在where 子句里.
解决办法:
将 $a['ids'] = implode(',',$_POST['ids']); 这一句修改为:
$a['ids'] = sprintf('"%s"',implode('", "',$_POST['ids']));
$arr = array("'a'","'b'");
$mysql_query ("SELECT * FROM TABLE WHERE Field IN (".implode(",", $arr).")");
以上就是土嘎嘎小编为大家整理的where子句中的php,where相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!