I need a programmer can read a button (or a pyroelectric infrared sensor), store "date and time of activation", save it in a buffer, send the data to a mysql database. if the connection to the server is not available, when it will become, you must store the data in the buffer queue in the database. obviously if the connection fails you have to try again.
essentially a people counter that stores data effectively on a mysql database. in the absence of internet line data and times of access are stored in memory until it can be sent to the web.