Beispiel #1
0
<?php

require_once '/var/www/git/application/models/NewItems.php';
//获取商品信息为空的
$items = new NewItems();
$it = new ItemInfo();
$string = '`end_time` is  NOT NULL';
$limit = 1000;
$result = $it->iteminfo_select_like($string, $limit);
while ($r = mysql_fetch_array($result, true)) {
    $endTime = $r['end_time'] / 1000;
    //获取字符串
    $startTime = time();
    if ($startTime >= $endTime) {
        $items->itemDel($r['id']);
    }
}
Beispiel #2
0
<?php

error_reporting(0);
require_once '../../../models/NewItems.php';
$id = $_GET['id'];
if (!isset($id)) {
    header('Location:' . $_SERVER['HTTP_REFERER']);
}
$re = new NewItems();
$re->itemDel($id);
header('Location:' . $_SERVER['HTTP_REFERER']);