Answers for "how to refresh page without reloading in php"

PHP
14

php refresh page

header("Refresh:0");
Posted by: Guest on March-16-2020
0

how to refresh a php variable without reloading page

function data() {
        var ret = [];
        ret.push({
          y: 'Today',
          a: <?php echo $data; ?>
        });
      return ret;
    }

var graph = Morris.Bar({
        element: 'graph',
        data: data(),
        xkey: 'y',
        ykeys: ['a'],
        labels: ['random label']
    });

function update() {
      graph.setData(data());
    }

setInterval(update, 60000);
Posted by: Guest on September-29-2020

Code answers related to "how to refresh page without reloading in php"

Browse Popular Code Answers by Language