|
|
$sql='SELECT count(firma_adi) FROM imalatcilar_reklam WHERE firma_aktif=1';
$sorgu=mysql_query($sql);
$domainsay=mysql_result($sorgu,0,0);
$sql='SELECT firma_adi, firma_web, firma_domain FROM imalatcilar_reklam WHERE firma_aktif=1 ORDER BY firma_adi';
$sorgu=mysql_query($sql);
$cc=0;
$bb=0;
for ($i = 0; $i < $domainsay; $i=$i+1)
{
if ($cc==2)
{
$bas3=mysql_result($sorgu,$i,0);
$adr3=mysql_result($sorgu,$i,1);
$dom3=mysql_result($sorgu,$i,2);
$cc=3;
}
if ($cc==1)
{
$bas2=mysql_result($sorgu,$i,0);
$adr2=mysql_result($sorgu,$i,1);
$dom2=mysql_result($sorgu,$i,2);
$cc=2;
}
if ($cc==0)
{
$bas1=mysql_result($sorgu,$i,0);
$adr1=mysql_result($sorgu,$i,1);
$dom1=mysql_result($sorgu,$i,2);
$cc=1;
}
if ($cc==3)
{
$cc=0;
echo '
|
|
';
$bas1='';
$adr1='';
$dom1='';
$bas2='';
$adr2='';
$dom2='';
$bas3='';
$adr3='';
$dom3='';
}
}
if ($cc>0)
{
echo '
|
|
';
}
?>
|
|
|