用的是checkbox批量传递的ID信息 然后批量删除ID
foreach($_POST['id'] as $k=>$id){$id=intval($id);DB::query("DELETE FROM ".DB::table('abc')." WHERE id='$id' LIMIT 1 ");
$result = DB::query("SELECT * FROM ".DB::table('abc')." where id='$id' and pic!=NULL LIMIT 1 "); $rows = mysql_fetch_assoc($result); @unlink($rows[pic]);
信息可以删除了,但是图片删除不掉
SELECT pic FROM ".DB::table('abc')." where id='$id'