所以我有这个搜索 torrent_download 的查询,torrent_download 只能是 1 或 0;
$sql_istorrenthere = $this->query("SELECT torrent_download
FROM " . DB_PREFIX . "auctions WHERE
auction_id='" . $item_details['auction_id'] . "'");
if (empty($sql_istorrenthere))
{
$display_output = GMSG_NOTORRENT;}
else
$display_output = GMSG_TORRENT;
}
我想要做的是if (empty($sql_istorrenthere))
用类似的东西替换部分if $sql_istorrenthere == 1 then $display_output = GMSG_NOTORRENT; else $display_output = GMSG_TORRENT;
这个怎么做?