topic description
to learn from the front end, I wrote an interface for ordering menus, but I wanted to store the menu data in the server. There are also customers" orders after ordering are also stored in one place (due to the lack of knowledge, I do not know how to describe this" place", which is used to count what is sold and how much money is made in a month. )
sources of topics and their own ideas
1. Menu data: I want to make it in json format, and then there is an interface that I can call at the front end.
2. After the customer orders (checkout): they also want to store it, mainly because they want to return the data to the background (extract it to the background)
because I don"t know anything about the back end, and I don"t want to ask for help (mainly no friends.) so I want to write what I want through php. The data for the
menu looks something like this:
[
{
"goodsId": 1,
"goodsName": "",
"price": 18
},
{
"goodsId": 2,
"goodsName": "",
"price": 15
},
{
"goodsId": 3,
"goodsName": "",
"price": 15
},
{
"goodsId": 4,
"goodsName": "",
"price": 18
},
{
"goodsId": 5,
"goodsName": "",
"price": 20
},
{
"goodsId": 6,
"goodsName": "",
"price": 20
},
{
"goodsId": 7,
"goodsName": "",
"price": 10
},
{
"goodsId": 8,
"goodsName": "",
"price": 18
},
{
"goodsId": 9,
"goodsName": "",
"price": 25
},
{
"goodsId": 10,
"goodsName": "",
"price": 99
}
]
then I call the front end, want to ask these two questions, need to learn what knowledge can be quickly started .
Thank you again for your answers!