Hello,
I m getting problem in the following case..
I have page let say
code]
htp://localhost/index.php?file=cat
[/code]
It display all the records in all category wit page navigation.
My page navigatin url becomes like
htp://localhost/index.php?file=cat&page=1
htp://localhost/index.php?file=cat&page=2
.. etc
I want to send $sort paramter ... so it does not matter where you are you it will add sort paramater to the current url
ie.
<a href=$_SERVER[REQUEST_URI]&sort=1>Sort by latest entry</a> <a href=$_SERVER[REQUEST_URI]&sort=1>Sort by highest price </a>
But it keeps adding $sort paramter..
ie.
[url]http://localhost/motortrader/index.php?file=home&page=2&sort=2&sort=3&sort=2&sort=1&sort=2&sort=2[/url]
is there any way to solve. I am sorry If i could not explain it very well.
All I want is , where ever you are either in
index.php?file=home or
index.php?file=home&page=1 or
index.php?file=home&page=3
I just want to send $sort paramater.so i can requery the database depending one what sort you want.
index.php?file=home&sort=1 or
index.php?file=home&page=1&sor=2 or
index.php?file=home&page=3&sor=1
If i use
<a href= $_SERVER[REQUEST_URI]&sort=1>Sort by ending date</a> | <a href= $_SERVER[REQUEST_URI]&sort=2>sort by highest price</a> .
it keeps adding $sort paramter when you click on the link ie,
[url]http://localhost/motortrader/index.php?file=home&page=2&sort=2&sort=3&sort=2&sort=1&sort=2&sort=2[/url]