Hey this is probably really simple, but i am still a beginner i am a bit confused about that.. I want to create something like a selfmade CMS for my website.
I have a .php document which is querying certain data from my database. Now if i change that data, the document will display the new data. (So i can edit my texts and images..)
My actual question is, how can i create something like a new page. So that i have a form which will write new data into my database and the .php document somehow displays my new data. I mean it is the same "template" like my first .php document, but how can i query different things from my database than before? How does that work in real CMS systems?
Basically i want to write new data in my database with a form. And depending on which url i will click in my index.php, different data is shown in my page1.php document.
I hope you know what i mean. Thank you
EDIT:
To give you an example: A main document with a lot of url's named "data1" "data2" "data3" and so on. If i click on "data2" the showdata.php document should display the data2 which it will find in the database.