PHP: paging hjælp.
Hej, jeg har fulgt en masse guides osv om paging, men desværre uden hjælp..er der en venlig sjæl der vil lave sådan den skrive < Tilbage | Frem > nederst?? - den skal vise 10 pr. side
her er koden
<?php
while ($row = mysql_fetch_array($kk))
{
if ($beskederIalt > 0)
{
$hentbruger = mysql_query("SELECT * FROM brugere WHERE brugernavn = '$row[fra]'");
$billede = mysql_fetch_array($hentbruger);
if ($_GET[delete] == "ok"){
mysql_query("DELETE FROM gb_indlaeg WHERE id = '$_GET[id]'");
print "<meta http-equiv='refresh' content='0;URL=gb.php?ejer=".$_SESSION[brugernavn]."'>";
}
?>
<table cellpadding="0" cellspacing="0" width="489">
<tr>
<td width="184" height="24">
<p> </p>
</td>
<td width="105" background="gfx/add_Buddy.gif" onclick="location.href='addVen.php?brugernavn=<?php echo "$row[fra]"; ?>'" style="cursor: hand;" height="24">
<p> </p>
</td>
<td width="103" background="gfx/seeProfile.gif" onclick="location.href='index.php?side=seProfil&brugernavn=<?php echo "$row[fra]"; ?>'" style="cursor: hand;" height="24">
<p> </p>
</td>
<td width="97" background="gfx/seeOthersGB.gif" onclick="location.href='index.php?side=seProfil&brugernavn=<?php echo "$row[fra]"; ?>'" style="cursor: hand;" height="24">
<p> </p>
</td>
</tr>
</table>
<table style="border-collapse:collapse;" cellspacing="0" width="100%">
<tr>
<td width="310" background="gfx/top.gif" style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#C78905; border-style:solid;">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="49%">
<div class=lilleoverskrift style="width: 100%; filter:glow(Color=white,Strength=1)"><font size="1" face="Verdana"><b><?php echo "$row[fra]"; ?> (<i>D13</i>) </b>- </font>d. <?php echo "$row[dato]"; ?>, kl. <?php echo "$row[kl]"; ?>
<?php if ($_SESSION[brugernavn] == "$row[til]"){ echo "<a onclick='confirmDelete();' href='gb.php?delete=ok&brugernavn=".$_GET[ejer]."&id=".$row[id]."'><font color=red>- Slet</a></font>"; } else { echo ""; } ?> </div> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="310" style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#E89E00; border-style:solid;">
<table cellpadding="0" cellspacing="0" width="374">
<tr>
<td width="116" height="88" >
<TABLE height=38 cellSpacing=0 cellPadding=0 width=38 border=0 align="center">
<TBODY>
<TR>
<TD onclick="popWin('<?php if ($billede[profilbillede] == "intet.gif") { echo "intet.gif"; } else { echo "galleri/$billede[profilbillede]"; } ?>');return false;"
style="cursor: hand; BACKGROUND-POSITION: center center; BACKGROUND-IMAGE: url(<?php if ($billede[profilbillede] == "intet.gif") { echo "intet.gif"; } else { echo "galleri/$billede[profilbillede]"; } ?>)"
width=38 height=38>
<p align="center"><IMG src="kant_profil.gif" alt="Profil for: <?php echo "$_GET[brugernavn]"; ?>"></TD></TR></TBODY></TABLE>
</td>
<td width="258" valign="top" align="top" height="88"> <p><?php echo "$row[tekst]"; ?></p>
</td>
</tr>
</table>
</td>
</tr>
</table></div><hr><?php } else { echo "<CENTER>Ingen beskeder skrevet. Du kan blive den foerste</CENTER>"; }} ?><div align="right">
</div>
