R
R
redd_i2018-04-07 19:30:48
PHP
redd_i, 2018-04-07 19:30:48

How to update every minute?

Hello. Please tell me, I have a page on which I display records from the database. How to make the content updated every minute (or better, as soon as a new record appears, it is immediately displayed). And one more problem. I have records with status field and values ​​0 (new) 1 (old).
How to make the melody play when the content is updated - if there are records with a value of 0. I will be very grateful for your help. It's hard for me)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maks Codov, 2018-04-07
@4604590

setTimeout or setInterval make ajax requests and display results based on the results.
music<audio src="...." controls autoplay></audio>

M
McBernar, 2018-04-07
@McBernar

Sockets or setInterval

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question