Bonjour,
Je poursuis mes recherches...
Je ne comprends pas pourquoi cette boucle
BOUCLE_parcoursmult(fg_site_parcours spip_guidegolfs){pid=CONCAT(#ID_ARTICLE,'1')}
se traduit par (une erreur) et:
L1.nbtrous, L1.parcours, L1.desc_tech, fg_site_parcours.l_r2, L1.slope_h1, L1.slope_f1, L1.slope_h2, L1.slope_f2, L1.slope_h3, L1.slope_f3, L1.slope_h4, L1.slope_f4, L1.lien_parcours
FROM fg_site_parcours AS `fg_site_parcours`
INNER JOIN spip_guidegolfs AS L1 ON ( L1.id_golf = fg_site_parcours.id_golf )
WHERE (fg_site_parcours.pid = 'CONCAT(00002,\'1\')')
*Unknown column 'fg_site_parcours.id_golf' in 'on clause'*
Pourquoi va-t-il mette id_golf à fg_site_parcours???
Merci
ADB
Le 06/05/2010 12:33, Arnaud DUPIN DE BEYSSAT a écrit :
Bonjour
Est-il possible d'écrire une boucle comme celle-ci?
BOUCLE_parcoursmult(spip_guidegolfs fg_site_parcours){CONCAT(id_golf,'1') = PID}
sachant que la boucle enveloppante est:
#SET{golf,#ENV{id_article}}
BOUCLE_golf(spip_guidegolfs){id_golf=#GET{golf}}
La table guidegolfs est liée à la table site_parcours, le PID de site_parcours étant id_golf.'1' (id_golf= 23, PID=231 ou 232 ou 233)
Je voudrais récupérer les différents enregistrements de la table site_parcours dont le PID correspond, au 1-2 ou 3 près, à l'id_golf.
Je nage...
Merci
ADB
_______________________________________________
liste spip
spip@rezo.net - désabonnement : envoyer un mail à spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Discuter chez rezo.net
Documentation de SPIP : http://www.spip.net/
Irc : de l'aide à toute heure : http://spip.net/irc