C
Craig M
Guest
I am working on search engine for my site, i have that 99% accomplished, but i am having a problem 'sorting' the results.
I would like an option to display 5, 10, 15 etc. results per page, i also have that figured out by using the following:
<a href="<?=$PHP_SELF?>?page=<?=$page?>&order=<?=$order?>&ord=<?=$ord?>&limit=10">10</a>
But i realise this is not the best way of doing it, as this shows the follwing in the URL bar:
http://www.????.com/search.php?page=0&order=id&ord=DESC&limit=10
Which can ofcourse be easily tampered with, any suggestions on better ways of doing this?
Coding is :
<a href="<?=$PHP_SELF?>?
page=<?=$page?>&
order=<?=$order?>&
ord=<?=$ord?>&
limit=10">10</a>
Which Shows:
search.php?page=0&
order=id&
ord=DESC&
limit=10
Works perfectly, thanks Geremy, much appreciated!
I would like an option to display 5, 10, 15 etc. results per page, i also have that figured out by using the following:
<a href="<?=$PHP_SELF?>?page=<?=$page?>&order=<?=$order?>&ord=<?=$ord?>&limit=10">10</a>
But i realise this is not the best way of doing it, as this shows the follwing in the URL bar:
http://www.????.com/search.php?page=0&order=id&ord=DESC&limit=10
Which can ofcourse be easily tampered with, any suggestions on better ways of doing this?
Coding is :
<a href="<?=$PHP_SELF?>?
page=<?=$page?>&
order=<?=$order?>&
ord=<?=$ord?>&
limit=10">10</a>
Which Shows:
search.php?page=0&
order=id&
ord=DESC&
limit=10
Works perfectly, thanks Geremy, much appreciated!
