name"); $result = mysql_query("select * from post where user=$userid order by id desc limit $offset,$count"); $n = 0; start_table(); while($post = mysql_fetch_object($result)) { show_post2($post, $n+$offset+1); $n++; } echo "\n"; mysql_free_result($result); if ($n == $count) { $offset += $count; echo "

Next $count posts "; } page_tail(); ?>