Creating a blogging system
Now that we have seen how we can query databases and how we can use the SPOD system, we are going to try implementing something that looks like a very simple blogging system.
We will have the following four functionalities:
Adding a new post.
Listing posts.
Adding a user.
Listing users.
In order to choose what actions we want to execute, we will use the GET
parameter "action". We will also pass other parameters needed by the action through GET
parameters.