<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>Tarih</th>
<th>Tutar</th>
<th>Seri No</th>
<th>İşlem Türü</th>
<th width="100">Durum</th>
</tr>
</thead>
<tbody>
<?php
$uyeliste = mysql_query("select * FROM bakiyehareket where sicil='$uyesicil' order by tarih asc");
while ($hesapozeti = mysql_fetch_array($uyeliste)) {
$bakid = $hesapozeti['id'];
$baktarih = $hesapozeti['tarih'];
$baktutar = $hesapozeti['bakiyep'];
$bakislem = $hesapozeti['islem'];
$baksn = $hesapozeti['sn'];
$odemedurumu = $hesapozeti['odeme'];
$islemgor = mysql_fetch_array(mysql_query("select * FROM belgeler where id='$bakislem'"));
$islem=$islemgor['belgeadi'];
$islemfaiz=$islemgor['belgefaiz'];
$yenitarih=substr($baktarih,0,8);
$ay=substr($yenitarih,3,2);
$year=substr($yenitarih,6,4);
$yil=date("y");
$suanay=date("m");
$faizay=$suanay-$ay;
$faizyil=$yil-$year;
$yilfarki=12*$faizyil;
$ayveyil=$yilfarki+$faizay;
$gunsayisi=$ayveyil*30;
?>
<?php
function hesaplaa($anaparaa,$aylikFaizz,$ayy){
$faizii = $anaparaa*pow((1+(($aylikFaizz)/100)), $ayy);
return $faizii;
}
$faizlitoplamm=hesaplaa($baktutar, $islemfaiz, $ayveyil);
function bilesikFaizHesaplaa($anaparaa,$aylikFaizz,$ayy){
$faizz = 1;
$faizii = 0.00;
for($ii = 1; $i <= $ayy; $ii++){
$faizz *= (1+(($aylikFaizz)/100));
}
$faizii = $anaparaa*$faizz;
return round($faizii, 2);
}
?>
<?php
if ($ayveyil>0){ $yaz="$faizlitoplamm ";}else{ $yaz="faizsiz";}
if ($bakislem=="1000")
{
$bakislemi="<font color='green'>Bakiye Ekleme</font>";
}
else
{
$bakislemi="<font color='red'>$islem</font>";
}
if ($odemedurumu=="1")
{
$odemedurum="<font color='green'>Ödendi</font>";
}
else
{
$odemedurum="<font color='red'>Ödenmedi</font>";
}
echo "
<tr>
<td>$baktarih Ay: $ayveyil $yaz</td>
<td class='center'>$baktutar TL</td>
<td class='center'>$baksn</td>
<td class='center'>$bakislemi</td>
<td class='center'>$odemedurum</td>
</tr>
";
}
$sonuc= mysql_query("select sum(bakiye) from bakiyehareket where sicil='$uyesicil' ");
$sonuc=mysql_fetch_array($sonuc);
if (empty($sonuc[0]))
{ $uyekredi="0";
}
else{
$uyekredi=$sonuc[0];
}
?>
</tbody>
<tfoot>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th><p align="right">Genel Toplam:</p> </th>
<th><?PHP echo $uyekredi ;?> TL</th>
</TR>
</tfoot>
</table>
3 Sorum var
1 ) bir fonksyona değişken ile rasgele bir ad verebilirmiyiz?
2 ) fonksyona rasgele nasıl bir ad verebilirim?
3 )rasgele bir ad verirsem sorunum çözülürmü?