Realtime connection to postgres database
| From: | Rodrigo Sánchez | Date: | Sun, 25 Oct 2020 21:18:41 +0000 |
| Subject: | Realtime connection to postgres database | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-49188@lists.php.net to get a copy of this message | ||
Hi everyone,
I made a table in html that reads a table from a postgres database (easy part). The postgres database grows every time an earthquake occurs. What is the best way to keep the table updated automatically, each time a new earthquake is added to the database? (I mean, not having to update by clicking on the browser). The ugly way to do it is by using something like header ("refresh: 3"); for example ... but isn't there something better?
Excuse the question if it is very obvious, but I am not a "full" time php programmer.
(PHP 7.4.11, postgresql 9.6.19)
--
++++++++++++++++++++++++++++++++++++++++
Rodrigo Sánchez-Olavarría
CSN, Centro Sismologico Nacional
Universidad de Chile
Celular : +56 9 42137243
++++++++++++++++++++++++++++++++++++++++