I am trying to jam all these Javascript / PHP commands into a single array element (?), but I have used both single and double quotes... is there any way around it?
=======================================
echo "<script type='text/javascript'>";
echo "var point = new GPoint(" . $row[X] . "," . $row[Y] . ");";
echo "address = '<b>".$row[TroupeName]."</b>';";
echo "var marker = createInfoMarker(point, address);";
echo "map.addOverlay(marker);";
echo "\n";
echo "</script>";
I was hoping to add all those to $Points, and just create a loop later on that can print out all these commands. Is my logic wrong?