0
How to automatically fill a template webpage with information ?
I am developing a music website with each song having a database entry (MySQL). The user searches for the song in the the search bar and then clicks on the search button to submit the information. A new webpage is then loaded with the search results. When the user clicks on a search result, I would like each song to have its own landing page, based on its database values. (Title, artist) I don't want to make a separate .php file on my server for each song. There should one PHP template file.
1 Odpowiedź
+ 3
hi
you have to have this files:
1- search.html page for search form
2- search.php file for search sended data from search.html
3- show_result.php to show results
4- show_song.php a page for a song
...