Code: Select all
<?php
$data = array(''.$Net.''=> $Net_Value, ''.$Moz.'' => $Moz_Value,''.$NSP.'' => $NSP_Value, ''.$WMP9.'' => $WMP9_Value,''.$WMP8.'' => $WMP8_Value, ''.$WMP7.'' => $WMP7_Value, ''.$IE6.'' => $IE6_Value, ''.$IE5.'' => $IE5_Value);
?>Now, if All of these values are populated with a value, then that's fine. But if even 1 of them doesn't have a value, the pie graph just dies because it can't figure out the %'s to use with a null value...
so, i'm trying to write an if else statement that can handle it, only after doing the math, it's gonna be like 100,000 some odd possibilities lol..
anyone have a suggestion?