+ 1
Please Help me PHP developers
I want to use multiple dynamic variables in php url, how can i do it?
4 Réponses
+ 2
Dipak Majumdar
Are you asking about how to set dynamic value in URL?
+ 1
this is about REST APIs client that's allow you to set up dynamic variables in route!
but your question is not clear
+ 1
Dipak Majumdar
Yes I think you are doing right. Pagination depends on your data.
Suppose you have 1000 records and you want to display only 10 records per page so your numbers of pages would be ceil(number_of_result/result_per_page) = ceil(1000 / 10)
Here is an example given
https://www.javatpoint.com/php-pagination#:~:text=The%20method%20of%20distributing%20a,instead%20of%20a%20single%20page.
0
Yes, i am asking about how to set multiple dynamic value in URL?
I mean i have a webpage which link is- "threads.php?catid'.$id.'"
But now i want to do pagination in this page of the link, so in that case i will need to use the page number is the URL. Right?
So have to use like this-> "threads.php?catid'.$id.'page='.$pno.'"
I mean i will add the dynamic page number ($pno) in the link.
Am i right?
I am wrong, so what is the right way?