I have this JavaScript code that creates a table, and puts in the rows and columns. I want to call this function, based upon some data in a database. So the amount of rows is based upon the amount of data in the database. My data in my database is a markscheme, I want the the table to fill depending upon the amount of questions are in the database
I have tried and here is my code:
hasLoaded = true;//page loaded set to true
<?php
$query = "SELECT maxMark, criteria FROM mark ";
$result = mysql_query($query);
while ($result != null)
{
addRow();//add row with everything in
}