【发布时间】:2015-03-10 13:15:02
【问题描述】:
我在下面有这段代码,我想要的是在循环之后使用其中一个项目时,我想从数据库中删除这个项目....
$query = db_select('watchdog', 'th')
->extend('PagerDefault')
->orderBy('wid')
->fields('th', array('variables', 'type', 'severity', 'message', 'wid'))
->limit(2000);
// Fetch the result set.
$result = $query -> execute();
// Loop through each item and add to $row.
foreach ($result as $row) {
blablablabla($row);
}
【问题讨论】:
标签: php database drupal drupal-7