Hallo ik ben bezig aan een foto index, nu wil ik dat die naar 5 fotos een nieuwe pagina opbouwt daar heb ik dit voor geschreven;
<table width=291 border=0>
<tr>
<?
$path = "thumb";
$Offset = "0";
$Numrows = "5";
$result = dir("$path LIMIT $Offset,$Numrows")or die("Oops...");
while ($entry = $result->read()) {
do {
echo "<td>[img]$path/$entry></td[/img]\n";
} while ($entry = $result->read());
}
?>
</tr>
</table>
Dit werkt niet echt.
Moet ik LIMIT gebruiken of is er een ander functie die ik nodig heb.
<table width=291 border=0>
<tr>
<?
$path = "thumb";
$Offset = "0";
$Numrows = "5";
$result = dir("$path LIMIT $Offset,$Numrows")or die("Oops...");
while ($entry = $result->read()) {
do {
echo "<td>[img]$path/$entry></td[/img]\n";
} while ($entry = $result->read());
}
?>
</tr>
</table>
Dit werkt niet echt.
Moet ik LIMIT gebruiken of is er een ander functie die ik nodig heb.