Okay, that's totally different.....
You'd need to run a query to get the 100 record IDs you want. Then split that into groups of 20, or dynamically limit which IDs are used, and take the 20 IDs and create a comma separated value list and use them in the WHERE clause of the array:
<?php
$recent = 100; // How many recent items to get...
$q1 = "SELECT `auto_id` FROM `table` LIMIT 0,$recent";
$result = mysql_query($query) or die('MySQL Query Error (#' . mysql_errno() . '): ' . mysql_error());
$ids = array();
while($row = mysql_fetch_array($result))
{
$ids[] = $row['id'];
}
$ids = array_unique($ids); // Remove duplicates... in case there are any
$free = @mysql_free_result($result);
$page = $_GET['page']; // Get the page we're on...
$pagesize = 20; // Set the num of records per page
$start = ($page-1)*$pagesize; // 1-1*20 = 0 (page 1), 2-1*20 = 20 (page 2), etc.
$end = $start+$pagesize-1; // 0+20-1 = 19 (page 1), 20+20-1 = 39 (page2), etc.
for($i=0, $max=sizeof($ids); $i<$max; $i++)
{
if($i >= $start && $i<=$end)
$auto_ids[] = $ids[$i];
}
$query = "SELECT * FROM `friend_reg_user`WHERE `auto_id` IN(" . implode(',', $auto_ids) . ") ORDER BY `auto_id`DESC";
$result = mysql_query($query) or die('MySQL Error (#' . mysql_errno() . '): ' . mysql_error());
/** Do whatever you want with the new results... **/
Hope that code helps you get started...