Last dataset via php to website


I have a little influxdb database where i am storing sensor data.
I want to display the data in a website

For example. I am running a website with html, css, and php
And i want to display the last (newest) dataset on the website.
How do i do that with php? I know how i make it with a mysql db, but the syntax for influxdb is not the same.
So could anyone help me out?

A Google search for “PHP InfluxDB” suggested to me:

(which refers back to the first link).



Yeah i’ve also found this. But i do not understand it, its a little bit too heavy for me. I need a example from anyone.