It is not possible to have it done with only CSS.
A minimum of programming is required. So the forum CSS is not the correct place to post.
For the first part of the question ("when a page loads, it will update a field") a javascript (client side) is sufficient, while for the access to a database you need a server side program (PHP, ASP, CGI, JSP, ...).
If you tell us which technology is available on your server, we can move the thread to the correct forum.
Non e` possibile ottenere quanto chiedi con solo CSS.
E` necessario utilizzare un minimo di programmazione; per questo il forum CSS non e` il posto adatto.
Per la prima parte della domanda ("when a page loads, it will update a field") basta JS (lato client), mentre per accedere ad un database e` necessario avere un programma che gira lato server (PHP, ASP, CGI, JSP, ...).
Se dici quale tecnica e` supportata dal tuo server possiamo spostare la discussione nel forum piu` adatto.

Rispondi quotando