Ilişkisel dizi işleme ve sonuç çıktısı

0 Cevap

Ive bir ilişkisel dizi şu mysql sonuçları bulaşmamın ve id diziden sonuçlarını görüntülemek istiyorum. Nedense onun sadece sonuçları baskı değil. Bu birleşmeli dizinin bir var_dump olduğunu:

array(7) { 
 ["id"]=>  string(3) "143"
 ["url"]=>  string(61) "http://news.bbc.co.uk/sport1/hi/football/eng_prem/9013345.stm"
 ["title"]=>  string(78) "BBC Sport - Football - Sir Alex Ferguson warns Man Utd ahead of Liverpool game"
 ["excerpt"]=>  string(138) "Carelessness must stop - Ferguson: Manchester United boss Sir Alex Ferguson warns his players to cut out the error... http://bbc.in/9tDv0R"
 ["tweet_count"]=> string(3) "183"
 ["created_at"]=> string(10) "2010-09-19" 
 ["media_type"]=> string(4) "news" 
}

ve bunu işlemek için YTL kullanarak kod im:

while($row=mysql_fetch_assoc($search))
      {

         foreach($row as $key=>$value)
            {
               echo $value["title"]."<br/>";
            }
         }

0 Cevap