Merhaba arkadaşlar while ile müşterilerimin faturalarını listeliyorum her sayfada 10 kayıt şeklinde göstermek istiyorum nasıl yapabilirim 1 - 2 -3 gibi sayfa numarası vermek istiyorum kullandığım kod:
<?php
$sql=mysql_query("SELECT * FROM faturalar where musterino= '$musterino' ORDER BY id ASC");
while($row=mysql_fetch_assoc($sql)){
?>
<tr>
<th><span class="glyphicon glyphicon-chevron-right"></span></th>
<th><?=$row['faturano']?></th>
<th><?=$row['donem']?></th>
<th><?=$row['sonodeme']?></th>
<th><?=$row['geneltoplam']?></th>
<th><? if($row['durumu']=="1")
{
echo "<font color='green'>Ödendi</font>";
} else {
echo "<font color='red'>Ödenmedi</font>"; } ?> <? if($row['durumu']=="0")
{
echo "<a href='fatura-ode.php?faturano=$row[faturano]'>Hemen Öde</a>";
} ?></th>
</tr>
<?php
}
?>