$j = 0; for ($j = 0; $j < count($cluster[$i]); $j++) { if (!isset($cluster[$i][$j])) { $cluster[$i][$j] = ""; } //echo $i; //echo $j; $id = $datanya[$cluster[$i][$j]]; //mendapatkan id dari following berdasarkan clusternya $following = $following_dao->getById($id); //mendapatkan data following berdasarkan id //echo $no.". ".$following->screen_name." (common_follower=".$following->common_followers_count.", common_following=".$following->common_friends_count.")"; //echo $ke; echo "<a href=\"https://twitter.com/{$following->screen_name}\" target=\"_BLANK\"><img src=\"{$following->profile_image_url}\" alt=\"{$following->name}\" title=\"{$following->name}\"></a>"; //menampilkan pic masing2 following brdasarkan clusternya $following_dao->addCluster($following->id, $ke); //menambahkan data cluster ke tabel following //echo "<br/>"; $no++; } echo "<br/>"; echo "<br/>"; echo "</td>"; echo "</tr>"; } ?> </table> </div> <div style="width:170px; float:right; margin-right:10px;">