[PHP-DB] Realtime connection to postgres database

2020-10-25 Thread Rodrigo Sánchez

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


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Realtime connection to postgres database

2020-11-09 Thread Rodrigo Sánchez

Hi everyone,

  I have a table (html), that is connected to  postgresql
database (v9.6). I want that every time there is a change
in the database, the table changes immediately. I am talking
about a realtime connection between html table and postgres
database via php (v7.4).

(without having to refresh the web page by clicking on the browser)


Is there a way to do it ?


 Rodrigo Sánchez
 CSN, UCH

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php