+ 1

Please Help me PHP developers

I want to use multiple dynamic variables in php url, how can i do it?

17th Oct 2021, 7:11 PM
Dipak Majumdar
Dipak Majumdar - avatar
4 Answers
+ 2
Dipak Majumdar Are you asking about how to set dynamic value in URL?
17th Oct 2021, 7:23 PM
A͢J
A͢J - avatar
+ 1
this is about REST APIs client that's allow you to set up dynamic variables in route! but your question is not clear
17th Oct 2021, 7:31 PM
Shahghasi Adil
Shahghasi Adil - avatar
+ 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.
18th Oct 2021, 7:31 PM
A͢J
A͢J - avatar
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?
18th Oct 2021, 6:13 PM
Dipak Majumdar
Dipak Majumdar - avatar