PHP and MySQL question. How would I spit the rows into muliple pages editing my code?

austin

New member
<?php

//Includes Connect
require("connect.php");

//Extract Data
$extract = mysql_query("SELECT * FROM home ORDER BY date DESC");
$numrows = mysql_num_rows($extract);

while ($row = mysql_fetch_assoc($extract))
{

$content = $row['content'];
$title = $row['title'];
$date = $row['date'];

echo "<font size='4'>$title</font><br><br>$content</font>";

}

?>


I wanna have it shown 10 rows per page
 
Back
Top