Hi there,
Overview:
- I have a page that list my products (Products.php)
- I made that only 3 products can be displayed in a page at a time.
- There is "page number"s at the buttom of the products page (Like Yahoo Search Results) and every "page number" can be clicked to take you to another 3 products in a page.
- Each picture in the result page can be clicked to open a page (ProductDetails.php) that show the clicked picture details.
Problem:
Lets say we are in the result page number 5, and I clicked on one of the products picture in the result page number 5, then the ProductDetails.php opened with the details of the Product I clicked, NOW:
Question:
I want to go back to the result page number 5! HOW?
The following is some lines of my code, that may it help you to help me
$Query = " SELECT * FROM Products ORDER BY ProductID LIMIT $Offset, $ItemsPerPage ";
$y = 1;
for ($x=0; $x<$TotNumRows; $x+$ItemsPerPage)
{
echo "[<a href=\"/ProductDetails.php&Offset=$x&Page=$y\">$y</a>] ";
$x = $x + $ItemsPerPage;
$y = $y + 1;
}
Please help
Overview:
- I have a page that list my products (Products.php)
- I made that only 3 products can be displayed in a page at a time.
- There is "page number"s at the buttom of the products page (Like Yahoo Search Results) and every "page number" can be clicked to take you to another 3 products in a page.
- Each picture in the result page can be clicked to open a page (ProductDetails.php) that show the clicked picture details.
Problem:
Lets say we are in the result page number 5, and I clicked on one of the products picture in the result page number 5, then the ProductDetails.php opened with the details of the Product I clicked, NOW:
Question:
I want to go back to the result page number 5! HOW?
The following is some lines of my code, that may it help you to help me

$Query = " SELECT * FROM Products ORDER BY ProductID LIMIT $Offset, $ItemsPerPage ";
$y = 1;
for ($x=0; $x<$TotNumRows; $x+$ItemsPerPage)
{
echo "[<a href=\"/ProductDetails.php&Offset=$x&Page=$y\">$y</a>] ";
$x = $x + $ItemsPerPage;
$y = $y + 1;
}
Please help