javascript - How can I repeat a mysql query every 5 minutes? -


i have sql query looks this:

<?php     include("settings.php");      $sql = conn->query("select * table limit 1");      $content = $sql->fetch_assoc();      $id = $content['id'];      /* php operations here. */     ?> 

now, want able repeat sql query every lets 5 minutes, because tables content change. how can this? there way sql request in javascript or ajax script?

if want refresh content, use ajax call in settimeout().


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -