View Single Post
Old 01-03-2013, 12:27 PM   PM User | #2
milanello72
New Coder

 
Join Date: Feb 2012
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
milanello72 is an unknown quantity at this point
It works %50
I have put:
in .htaccess
Code:
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/([a-zA-Z0-9.\s]+)/?.html$ index.php?pagina=$1&id_squadra=$2&numele=$3 [L,QSA]
and in balariipagination.php
Code:
$pagination.= "<a href=\"$targetpage?page=$next\">« previous</a>";
And in teams.php
Code:
$self = $_SERVER['REQUEST_URI'];
$targetpage = $self;
But... i will go here calcioitalia/teams/1/Juventus F.C. Torino.html and after that I will enter in page=2 and it works
(I will have calcioitalia/teams/1/Juventus F.C.Torino.html?page=2 )
and if I will go in page=3 I will obtain this link calcioitalia/teams/1/Juventus F.C. Torino.html?page=2?page=3 with the content of page=2
And it was set this
Code:
$_GET['page']=2?page=3
so this is the problem:
Code:
$pagination.= "<a href=\"$targetpage?page=$next\">« previous</a>";
how could i solve this problem?

Last edited by milanello72; 01-03-2013 at 12:31 PM..
milanello72 is offline   Reply With Quote