时间:2021-07-01 10:21:17 帮助过:4人阅读
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'