Nasıl php aşağıdaki tabloyu elde etmek için bir dizi tasarım ve fonksiyon uygulama hakkında gitmek istiyorum. Veri mysql veritabanından çizilmiş olurdu ama gerekli mysql sorgu sayısını sınırlamak ve bu nedenle çeşit biçimlendirilmiş bir dizi kullanmak istiyorum.
-----------------------------------------
| | 2009 | 2008 | 2007 | 2006 |
-----------------------------------------
| country a | d d | | doc | doc |
| country b | | doc | doc | |
| country c | doc | d d | | doc |
| country d | doc | | d d | |
-----------------------------------------
Where both d & doc are documents. And any date(y) / country can have many documents. The resulting table would be an html table.