我有一个类,里面有一个执行 mysql 查询的函数
$aUpdateAuLogs = DBC::$slave->selectAssoc("INSERT INTO auction_activity_logs (id_user, id_target)
VALUES ('{$aAuctionData['_key_']}'),('{$aAuctionData['watched_auctions']}')");
return $aUpdateAuLogs ;
所以在我的文件中,我想在这个 foreach 之后调用并执行它
foreach ($aExpAuction as $nAuctionID => $aAuctionData)
{
if (!array_key_exists($nAuctionID, $aWathedAuctions))
continue;
}