Просмотр поста

.
segOro

что лучше?
Вот это:
$colf = mysql_num_rows(mysql_query("select `id` from `download` where type='2' and refid='" . $zap2['id'] . "';"));
echo "($colf)</div>";

Или это:
$g = 0;
$kf = mysql_query("select `adres` from `download` where type='2';");
while ($kf1 = mysql_fetch_array($kf))
{
if (stristr($kf1['adres'], "$zap2[adres]/$zap2[name]"))
{
$g = $g + 1;
}
}


echo "($g)</div>";