If online show this, else show this (not working)

This is the new version I got which I tried to get the logo’s as well as the viewers. It works aside from it only showing the information from the first live stream it sees and then copies that to the other streams that are live. Best way to explain that, and again, I have the code on my test page

<?php

// Channels to pull the stuff from
$live = array();
$channels = array(“themittanidotcom”, “djyumene”, “mym_alkapone”, “Rightrevgoldstein”, “daopa”, “streamerhouse”, “cabochardlol”, “moanygamer”, “bajheera”, “lelaaone”, “Old_Bearded_Gamer”);

// This part does stuff … and things! No touchie!
$streamData = json_decode(@file_get_contents("https://api.twitch.tv/kraken/streams?channel=".implode(",",$channels)), true);

    foreach ($channels as $name) { 
        $live[$name] = null; 
    }

    foreach ($streamData["streams"] as $chdata)  {
        $live[$chdata["channel"]["name"]] = $chdata["channel"];        
    }
        foreach ($live as $name => $channel) {
                    if($channel != null){
                            $game =         $chdata['channel']['game'];
                            $logo =         $chdata['channel']['logo'];
                            $viewers =         $chdata['viewers'];
                    echo "<p><img src='$logo' height='45' width='45' style='float:left;'><a href='http://twitch.tv/$name/embed' target='tbox'><font style='font-size: 1rem;line-height: 1.4;white-space: nowrap;font-weight: 700;color: #B9A3E3;text-decoration: none;font-family: 'Open Sans',sans-serif;'>$name</font></a><br><font style='font-size: 0.75rem;line-height: 1;white-space: nowrap;font-weight: 700;color: #3366FF;text-decoration: none;font-family: 'Open Sans',sans-serif;'>Playing: <img src='online.png' height='7' width='7'> $game<br>Viewers: $viewers</font></p>";
                    } else{
                    echo "<p><img src='$logo' height='45' width='45' style='float:left;'><a href='http://twitch.tv/$name/embed' target='tbox'><font style='font-size: 1rem;line-height: 1.4;white-space: nowrap;font-weight: 700;color: #B9A3E3;text-decoration: none;font-family: 'Open Sans',sans-serif;'>$name</font></a><br><font style='font-size: 0.75rem;line-height: 1;white-space: nowrap;font-weight: 700;color: #3366FF;text-decoration: none;font-family: 'Open Sans',sans-serif;'>Playing: <img src='offline.png' height='7' width='7'> Offline<br><br></font></p>";
                        }
        }

?>