Need help. mysql esp8266 arduino

I have a project vending machine that needs to display database on webserver and updates database for every purchase and realtimeclock for every purchase. I want to have something like this on my webpage. We have no idea and codes for doing that.

https://www.youtube.com/watch?v=jkzVLD5hfIU

We have no idea and codes for doing that. thanks, we really need help we're newbies.