[Solved] PHP: INSERT array to table with a timer or clock (per second)


With javascript setInterval() method calls a function at specified intervals (in milliseconds).

var pause = setInterval(function(){ insert data }, 2000); // 2 sec

To stop the time use clearInterval(pause) by referencing the variable.

To execute the function once use setTimeout()

0

solved PHP: INSERT array to table with a timer or clock (per second)