Bonjour,
j’essaie d’afficher sur différentes colonnes les cinqs derniers articles pour chaque secteur (une colonne pour un secteur).
Voilà ma syntaxe :
<table border=0 cellpadding=2 cellspacing=5 width=« 100% »>
<BOUCLE_SECTEURS2(RUBRIQUES){ID_PARENT=0}{PAR titre}><TD valign=« top » bgcolor="#FFCC00"><div align=« center »><**a href="#URL_RUBRIQUE"><FONT** COLOR="#003366" FACE=« Verdana,Geneva,Arial,Helvetica,sans-serif » SIZE=« 2 »>#TITRE**</**a></BOUCLE_SECTEURS2>
<BOUCLE_SECTEURS3(RUBRIQUES){ID_PARENT=0}{PAR titre}><TD background=« images/trame_modules.gif » valign=« top »><BOUCLE_ARTICLES_SECTEUR(ARTICLES){id_secteur}{DOUBLONS}{PAR date}{inverse}{0,5}><img src=« images/buloran.gif » border=« 0 » width=« 8 » height=« 11 » alt="" align=« middle »><font size="-1">[(#DATE|nom_jour)] [(#DATE|jour)] [(#DATE|nom_mois)]
<FONT size=2><A href="#URL_ARTICLE">#TITRE**</A****>
</BOUCLE_ARTICLES_SECTEUR></BOUCLE_SECTEURS3>**
Mon problème : L’affichage du titre des différents secteurs marche sans problème. Par contre, pour les articles correspondant ça ne marche pas (code en rouge)?! Voilà ce que j’obtiens comme résultat à la place des articles :
BOUCLE_ARTICLES_SECTEUR SELECT articles.* FROM spip_articles AS articles WHERE articles.id_secteur=‹ 5 › AND articles.DOUBLONS=’’ AND articles.date
Merci de l’aide…
Benoît Lafitte
Guest student at Lund Institute of Technology - Polymer Technology (Lund University), Sweden
Student at the « Ecole Nationale Superieure de Chimie de Lille », France
Phone : +46 (0)46 13 26 80
Fax : +46 (0)46 13 36 80
e-mail addresses :
At the university - kx_btl@ktek.lth.se
At home - blafitte@mathurin.com or lafitteb@hotmail.com
Web : www.mathurin.com (webmaster@mathurin.com)