- 1
- 2
- 3
- 4
if (Database::getDbType() == 'pgsql')
$stmt = Database::getInstance()->dbh->prepare("SELECT COUNT(*) AS count FROM torrent WHERE tracker = :tracker AND torrent_id = :id");
else
$stmt = Database::getInstance()->dbh->prepare("SELECT COUNT(*) AS `count` FROM `torrent` WHERE `tracker` = :tracker AND `torrent_id` = :id");
DrFreez 24.03.2013 20:44 # 0
eth0 24.03.2013 21:37 # +3
nonamez 24.03.2013 21:58 # −2
scriptin 24.03.2013 22:49 # 0
Stallman 24.03.2013 22:25 # 0
guest 29.03.2013 10:27 # 0