$sorgu = mysql_query("SELECT COUNT(distinct(`packet`.`packet_id`)) as total FROM packet INNER JOIN product ON product.packet_id = packet.packet_id WHERE packet_status = 1 AND packet_f1 = 'CD-KEY'");
$toplam_icerik = (int)mysql_fetch_assoc($sorgu)['total'];