The headline is properly pretty bad, but i don't know what to name it.. Anyways: I have this simple problem with a javascript code that i want to display some php code, but i don't know how to do it.. Here is the code:
var bigData = {
"teams" : [],
"results" : [] };
for( var i=1 ; i<16 ; i+=2 )
{
bigData.teams.push(["<?php echo 1; ?>",'Team '+(i+1)]);
}
for( var j=1 ; j<16 ; j++ ) {
bigData.results.push([1,2]);
}
As you see im trying to just print something in php inside the javascript but i can't. Any one who got a solution?
Best regards Emil