categories match in org chart

13 views
Skip to first unread message

hugues garcia

unread,
Jan 31, 2017, 3:08:36 AM1/31/17
to Google Visualization API
Hello,

I build my chart from MYSQL with PHP, when I insert html tags, lines doesn't match anymore.


The two sections mentionned above in circles are supposed to be the same.

here is my code :
foreach($sousdirection as $value_sousdirection){
                echo
"['<div>".$value_sousdirection."</div>','Direction',''],";
           
}
           
           

               
foreach($groupement as $value_groupement){
                    $value
=explode('+',$value_groupement);
                   
//echo "['".$value[1]."','".$value[0]."',''],";
                    echo
"['<div><a href=\"index2.php?groupement=".urlencode($value[1])."\">".$value[1]."</a></div>','<div>".$value[0]."</div>',''],";
               
}
               
               
               
foreach($service as $value_service){
                    $value
=explode('+',$value_service);
                    echo
"['<a href=\"index2.php?service=".urlencode($value[1])."\">".$value[1]."</a>','<div>".$value[0]."</div>',''],";
                   
//echo "['".$value[1]."','".$value[0]."',''],";
               
}.


Auto Generated Inline Image 1
Reply all
Reply to author
Forward
0 new messages