I can\'t use PHP in my HTML pages. For example, index.html
. I\'ve tried using both:
contents ?>
and
AJAX is also a possibility. Effectively you would want data from the php page. Once you have the data you can format in anyway in javascript and display.
var xmlhttp = new XMLHttpRequest();
var url = "risingStars.php";
xmlhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
getDbData(this.responseText);
}
}
xmlhttp.open("GET", url, true);
xmlhttp.send();
function getDbData(response) {
//do whatever you want with respone
}