Jump to content

Archived

This topic is now archived and is closed to further replies.

piet bierbuik

after 10 results an other page

Recommended Posts

hi people

i have a script that retrieve all names form the database
but the list is getting to big (over 40)


i would like to create a page that splits up those 40 results.
so after 10 results you can click next to the next 10 results.

can someone modify this script for me

THX piet

[code]
name.php

<?php
$sql = "SELECT * FROM database";
$result = mysql_query($sql);

while ($rij = mysql_fetch_array($result))
{

echo ucfirst($rij['naam']);
 
<BR />
}
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.