我试图获取拍卖信息并投入其中,我认为我需要有结果字符串不在数组中,我接下来做
$aUserData = DBC::$slave->selectAssoc("
SELECT
s.id_auction AS _key_,
s.id_auction AS id,
s.seller_user_name AS user_name,
s.end_date_time AS finish_date,
s.suspended AS active,
s.id_category AS category,
s.title AS title
FROM auctions_search AS s
WHERE TRUE
AND s.status = 'active'
AND s.suspended = 'no'
");
foreach ($aUserData as $iKey => $nUserID)
{
if (!isset($aUserData[$nUserID]))continue;
}
$nUserID = implode(',',$nUserID);
Tools::printPre($nUserID);
结果是 `string(80) "150031,u0001,2013-08-19 16:08:03,no,833,Title of Item"
但这里只显示 1 个结果,因为在 sql 查询中我有多个用户的多个结果
得到结果后我需要去 foreach<tr><td>ID of AUCTION:(put here ID of item)</td></tr>Title:(title of item) and etc
有任何想法吗?