Rumah > Artikel > pembangunan bahagian belakang > 这个delete删除 哪里异常了
这个delete删除 哪里错误了?
Paper Title |
Comments |
Upload Date |
Delete |
|
=@$row['paper_title']?> | =@$row['upload_time']?> |
if (isset($_POST['name'])) { $str = explode(",",$_POST['name']); mysql_query("delete from t_paper where paper_title in($str)"); //这里明显有问题,explode()函数返回的是一个数组,SQL语句语法错误了}<div class="clear"> </div>