Résultat d'une select zend_db

kamclasse Messages postés 3 Date d'inscription mardi 12 mai 2009 Statut Membre Dernière intervention 8 mai 2011 - 7 mai 2011 à 14:47
kamclasse Messages postés 3 Date d'inscription mardi 12 mai 2009 Statut Membre Dernière intervention 8 mai 2011 - 8 mai 2011 à 23:51
bonjour à toutes et à tous,
j'ai une requête select fait par le zend_db (pdo)

$select = $db->select()
             ->from(array("p" => "organisation"), array("p.Intitule"))
     ->join(array("u" => "sousorg"),'p.IdOrg = u.Idorg',array("u.IntituleSO"))
     ->join(array("d" => "docs"),'d.IdSO = u.IdSO',array("d.NomDoc"))
     ->where('d.Etat = ?', "A")
     ->order('d.DateCreatDoc desc');

  
$res = $db->fetchAll($select);


mon prob est que le résultat s'affiche aplatis :
p.Intitule u.IntituleSO d.NomDoc
p.Intitule u.IntituleSO d.NomDoc
p.Intitule u.IntituleSO d.NomDoc

or mois je veux un affichage groupé :

p.Intitule
u.IntituleSO
d.NomDoc
d.NomDoc
d.NomDoc
u.IntituleSO
d.NomDoc
d.NomDoc
d.NomDoc

est ce qu'il y a une moyenne pour faire ceci et merciiiiii d'avance.

2 réponses

kamclasse Messages postés 3 Date d'inscription mardi 12 mai 2009 Statut Membre Dernière intervention 8 mai 2011
7 mai 2011 à 15:00
dsl pour la mise en forme :

mon prob est que le résultat s'affiche aplatis :
p.Intitule u.IntituleSO d.NomDoc
p.Intitule u.IntituleSO d.NomDoc
p.Intitule u.IntituleSO d.NomDoc


or mois je veux un affichage groupé :


p.Intitule
     u.IntituleSO
           d.NomDoc
           d.NomDoc
           d.NomDoc
     u.IntituleSO
           d.NomDoc
           d.NomDoc
           d.NomDoc



est ce qu'il y a une moyenne pour faire ceci et merciiiiii d'avance.
0
kamclasse Messages postés 3 Date d'inscription mardi 12 mai 2009 Statut Membre Dernière intervention 8 mai 2011
8 mai 2011 à 23:51
bonsoir tout le monde malheureusement j'ai pas trouvé de solution à mon prob, j'aimerai savoir juste s'il est possible de faire ce genre de requête ou pas?

merciiiiiii
0
Rejoignez-nous