there are tutorials posted all over the inet, and all over this news group.
take a look around.
Ive left out the details and stuck with the basics, modify as needed, you'll
need to :)
if (!isset($HOW_MANY))
$HOW_MANY = 10;
if (!isset($position))
$position = 0;
$prev = $position - $HOW_MANY;
$next = $position + $HOW_MANY;
$query = "SELECT * FROM table LIMIT $position, $HOW_MANY";
$search_a = $position;
$search_b = $next;
$search_c = @$product->product_count;
if ($search_b > $search_c)
$search_b = $search_c;
echo "
Displaying $search_a - $search_b of $search_c Orders
";
if ($prev >= 0)
echo "
<a href='$PHP_SELF?position=$prev'><$IMG src='image/back.gif'></a>
";
echo "
<a href='$PHP_SELF?position=0'><$IMG src='image/home.gif'></a>
";
if ( $next < $search_c )
echo "
<a href='$PHP_SELF?position=$next'><$IMG src='image/next.gif'></a>
";
--
Chris Lee
[EMAIL PROTECTED]
"Nicklas Bondesson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> all ideas are very welcomed !!
>
> /nicke
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]