Merci beaucoup, je découvre plein de nouvelles syntaxes et balises et c’est très intéressant.
Par contre, le code que tu m’as donné ne fonctionne pas.
Il y a plein de warning comme celui-là :
<b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in <b>/home/www/e47af3501f8c38d5d6377b2ff2f415f3/web/spipaml/ecrire/public/composer.php(72) : eval()'d code</b> on line <b>380</b><br />
Et une erreur :
<div id='spip-debug' style='position: absolute; top: 20px; left: 20px; z-index: 1000;filter:alpha(opacity=60); -moz-opacity:0.6; opacity: 0.6;'><ul><li>Erreur(s) dans le squelette<br /></li><ul><li><tt><blink><BOUCLE_articles_bons>(articles)</blink><br />
<b>Erreur MySQL</b><br />
articles.id_rubrique, FIELD(articles.id_article,) AS cpt3, articles.id_article, articles.titre, articles.date, articles.lang
FROM spip_articles AS <span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+YXJ0aWNsZXM8L2NvZGU+"></span>
WHERE (articles.statut = "publie")
HAVING (cpt3 <> 0)
ORDER BY articles.titre
<br /><span style='color: red'><b>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AS cpt3, articles.id_article, articles.titre, articles.date, articles.lang
FRO' at line 1</b></span><br /><blink></BOUCLE_articles_bons></blink></tt>
Dans le debug, le résultat de boucle_articles_mot est :
1 SELECT articles.id_article, articles.lang
2 FROM <span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+c2lib3JnMTI8L2NvZGU+"></span>.spip_mots_articles AS <span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+TDE8L2NvZGU+"></span>, <span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+c2lib3JnMTI8L2NvZGU+"></span>.spip_articles AS <span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+YXJ0aWNsZXM8L2NvZGU+"></span>
3 WHERE (L1.id_mot = '22')
4 AND (articles.statut = "publie")
5 AND articles.id_article=L1.id_article
} } }
Je ne comprends pas d’où sortent ces accolades... Pareil pour la boucle boucle_articles_rub.