It is the first time I'm developing a blog, I want to see if I get this right. Elements:
- html page that will display the blog messages
- javascript that will sent a get/post request onload to get all the blog posts from DB(MySQL)
- PHP page that will get the get/post request to bring/edit/delete a page and will fetch/edit/delete the appropriate item in DB.
- MySQL DB that will store all post items in DB
Flow:
html <--onload()--> javascript <--edit(id)/get(all)/delete(id)--> php <--delete/update/insert-->MySQL
Is that the way to do it? is there a better or easier way I'm creating this blog to practice JavaScript/PHP/HTML.