I have a page index.php
. It has a loop
that collects line by line from a table of the mySQL database and inserts in the variables that are sent to the file dashboard.js
where it has the code below.
var visitorsData = {
[CODE_PAIS]: TOTAL_VISIT_PAIS, //Brazil
};
What I want is that the variable visitorsData
of the file dashboard.js
stores the same amount of line and information as it has in my table.
NOTE: The number of rows in the database is not fixed.