したがって、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;
これを行う方法?