首先你的oldtime最好是time()函数取出的秒然后取现在的时间$newtime=time();然后求出于$oldtime的15分钟的差$newtime=$newtime-15*60;$sql="DELETE FROM table_name WHERE oldtime > $newtime";
顺便说一声,你的分能不能多给点?