Edit This Code:
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="../lib/w3.css">
<script src="../lib/w3data.js"></script>

<body>

<ul id="id01" class="w3-ul w3-border">
  <li w3-repeat="records">{{CustomerName}}</li>
</ul>

<script>
w3Http("w3data.php?model=model_customers", function () {
    if (this.readyState == 4 && this.status == 200) {
        var myObject = JSON.parse(this.responseText);
        w3DisplayData("id01", myObject);
    }
});
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy