Jump to content

after 10 results an other page


piet bierbuik

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]
Link to comment
https://forums.phpfreaks.com/topic/18460-after-10-results-an-other-page/
Share on other sites

Archived

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

×
×
  • Create New...

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.