Now, I'm aware that my issue probably is that I'm not urlencoding it properly. The thing is I have no clue how to do it properly. On my page I don't receive an error message, but the video doesn't load. The JSON looks to be pulling all the data correctly, I've tried to follow any steps I could find but am frankly,... lost.
When I leave it like this;
<head>
<script type="text/javascript" src="/derek/js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF(
"/home/jstarace/zardozthegreat.com/open-flash-chart.swf", "handletime",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"/derek/derekmetrics.php"} );
swfobject.embedSWF(
"/Users/derek/open-flash-chart.swf", "sales",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"/derek/dereksales.php"} );
swfobject.embedSWF(
"/Users/derek/open-flash-chart.swf", "csat",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"/derek/derekcsat.php"} );
</script>
</head>
Nothing loads - but there's also no error messages
But if I change it to;
<?php
$daturl = urlencode("/derek/derek.php);
?>
<head>
<script type="text/javascript" src="/derek/js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF(
"/home/jstarace/zardozthegreat.com/open-flash-chart.swf", "handletime",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"<?php echo ?daturl; ?>"} );
swfobject.embedSWF(
"/Users/derek/open-flash-chart.swf", "sales",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"/derek/dereksales.php"} );
swfobject.embedSWF(
"/Users/derek/open-flash-chart.swf", "csat",
"400", "300", "9.0.0", "expressInstall.swf",
{"data-file":"/derek/derekcsat.php"} );
</script>
</head>
I get
Parse error: syntax error, unexpected T_STRING in /home/jstarace/zardozthegreat.com/derek/derek.php on line 8
Who knows it may just be that this is my first 12 hour stint working on a site and I can't think. But if you could please help that would be fantastic. Oh yeah and assume I know nothing... cause I don't
