Jump to content


Photo

after 10 results an other page


  • Please log in to reply
2 replies to this topic

#1 piet bierbuik

piet bierbuik
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 23 August 2006 - 07:04 PM

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

name.php

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

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

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


#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 23 August 2006 - 07:08 PM

Any chance we can get an English translation? :-P
PHP Ninja

#3 piet bierbuik

piet bierbuik
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 23 August 2006 - 07:09 PM

sry done :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users