分析错误:语法错误,意外'$油炸圈饼';(T_变量)位于C:\xampp\htdocs\Clinic\fusioncharts.php的第56行

分析错误:语法错误,意外'$油炸圈饼';(T_变量)位于C:\xampp\htdocs\Clinic\fusioncharts.php的第56行,php,arrays,json,Php,Arrays,Json,*我还是个新手,所以请对我放轻松:)* 有人能帮我修复并解释一下吗?我不能真正理解JSON,因为我还是新手?非常感谢。 谢谢 // Syntax for the instance - $var = new FusionCharts("type of chart", "unique chart id", "width of chart", "height of chart",

*我还是个新手,所以请对我放轻松:)* 有人能帮我修复并解释一下吗?我不能真正理解JSON,因为我还是新手?非常感谢。 谢谢


// Syntax for the instance -         
$var = new FusionCharts("type of chart", 
                "unique chart id", 
                "width of chart", 
                "height of chart", 
                "div id to render the chart", 
                "type of data", 
                "actual data")

// creating FusionCharts instance
$doughnutChart = new FusionCharts($doughnut2d, $browserShareChart , "100%", "450", "doughnut-chart", $json, $jsonEncodedData);

// FusionCharts render method
$doughnutChart=render();

// closing database connection      
$dbhandle=close();

?>

你忘了
FusionCharts
语句之后。放
如下所示:

$var = new FusionCharts("type of chart", 
                "unique chart id", 
                "width of chart", 
                "height of chart", 
                "div id to render the chart", 
                "type of data", 
                "actual data");

您缺少一个
完成
$var=new FusionCharts(…
语句,就在分配
$doughnutChart
的前面,并使其成为意外变量。请不要只指出印刷问题或缺少的字符来发布答案。此类答案不太可能帮助未来的访问者,因为它们特定于OP的代码。相反,请标记或投票关闭问题a根据@Dharman好的,先生。你有自己的博客网站吗?你在哪里学到了安全相关的话题?我自己没有博客。你应该跟随好的专家。你是一些最好的专家。
$var = new FusionCharts("type of chart", 
                "unique chart id", 
                "width of chart", 
                "height of chart", 
                "div id to render the chart", 
                "type of data", 
                "actual data");