Jump to content

Frenzyy

New Members
  • Posts

    6
  • Joined

  • Last visited

Community Answers

  1. Frenzyy's post in Google Charts Dynamic Arrays PHP Without SQL was marked as the answer   
    array_combine was needed to join the two arrays together and then inside of 'function drawChart' a simple foreach loop was required, like this:
    <?php
    foreach ($array as $name => $allocation):
    echo "['$name', $allocation]";
    echo ($allocation != end($array)) ? ',' : '';
    endforeach;
    ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.