Problem rendering FUSIONCHART
Permalink
Hi
I'm using fusioncharts to render some mysql data.
I've installed the PHP block addon in concrete to code it.
Everything works in EDIT MODE, chart renders etc ..., but once i exit edit mode the url changes when i click my page stats and redering the chart doesn't work anymore ??
Somebody any idea? Thanks
Fusionchart is using PHP and JAVASCRIPT to render some swf file ...
I've got some (bad/no error handling and messy)code and some pictures attached:
I'm using fusioncharts to render some mysql data.
I've installed the PHP block addon in concrete to code it.
Everything works in EDIT MODE, chart renders etc ..., but once i exit edit mode the url changes when i click my page stats and redering the chart doesn't work anymore ??
Somebody any idea? Thanks
Fusionchart is using PHP and JAVASCRIPT to render some swf file ...
I've got some (bad/no error handling and messy)code and some pictures attached:
$url="https://blubblubblub.blub"; $con=mysql_connect("localhost","root","blub") or die("Failed to connect to DB"); mysql_select_db("blub", $con); /////////////////////////////////////////////////////////////////////// ///START PHP FUNCTION CREATION TO DETERMINE VARIABLES NEEDED FOR DB/// $parsed = parse_url($url); function GetName($myName){ foreach($myName as $key => $value){ if(strcmp($key, "path") == False){ $myName = $value; return (string)$myName; } } } $name = GetName($parsed); ///call function with parsed url var//
Viewing 15 lines of 64 lines. View entire code block.