Answer the question
In order to leave comments, you need to log in
All pages of the site are in the database in the seo table. In the same place seo data and url of pages. How to make links on the site to different pages? To unload from a DB or not?
Hello. The site is written in php. When I open a page on the site, the SEO data of this page is downloaded from a special table by url. And they are tagged.
Here is my question. How do I link to pages on the site?
1) Just hardcoding? But then if I change the address of the page, I will have to change it wherever there are links to it. And plus in a DB.
2) Unload all pages from the database in advance, put them in an array. And from this array to select links to other pages? But it seems to me that this will slow down the site a lot.
3) Any other option?
Answer the question
In order to leave comments, you need to log in
Or hardcode in html and change when the url changes or use some kind of link generator every time the page is shown.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question