Hey
hvordan gør jeg så der kun er 10 liner på pr side på det her script ?
<?php
include("cn.php");
include("common.php");
checklogin();
$msg = "";
if(isset($_POST['Submit']))
{
$total = $_POST['total'];
$td = 0;
$i = 0;
for($i = 1; $i <= $total; $i++)
{
if(isset($_POST["d$i"]))
{
mysql_query("DELETE FROM Bnc_kunder WHERE id=".$_POST["d$i"],$link);
$td++;
}
}
$msg = "$td Bnc kunde(er) slettet";
}
$result = mysql_query("Select * from Bnc_kunder ORDER BY navn",$link);
$num = mysql_num_rows($result);
$n = 0;
?>
<html>
<head>
<title>Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h3>Bnc kunder</h3>
<p><?php echo $msg?></p>
<form name="form1" method="post" action="">
<p> </p>
<table border="0" width="500" id="table1" style="border-collapse: collapse">
<tr bgcolor="#CCCCCC">
<td width="3%" bgcolor="#FFFFFF" style="border-style: none; border-width: medium"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="97%" bgcolor="#FFFFFF" style="border-style: none; border-width: medium"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Kilk på navnet for mere info<br>
</strong></font></td>
</tr>
<?php while($row = mysql_fetch_array($result, MYSQL_BOTH)){
$n++;
?>
<tr>
<td width="20"><input type="checkbox" name="d<?php echo $n;?>" value="<?php echo $row['id'];?>"></td>
<td style="border-style: none; border-width: medium" width="150"><a href="bnckunder.php?id2=<?php echo $row['navn']?>"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $row['navn'];?></font> <td>
<td size="2" face="Verdana, Arial, Helvetica, sans-serif">(<?php echo $row['ident'];?>)</font></a></td></td>
</tr>
<?php
}?>
<tr>
<td style="border-style: none; border-width: medium"> </td>
<td style="border-style: none; border-width: medium"> <input name="total" type="hidden" id="total" value="<?php echo $n?>"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium"> </td>
<td style="border-style: none; border-width: medium"><input type="submit" name="Submit" value="Delete"></td>
</tr>
</table>
<p> </p></form>
<p> </p>
<p align="center"> </p>
<p> </p>
</body>
</html>