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
Post a Comment