Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

problème avec les while

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Fadile
Smarty Rookie


Joined: 28 Dec 2005
Posts: 6

PostPosted: Wed Dec 28, 2005 11:13 am    Post subject: problème avec les while Reply with quote

salut tout le monde quelqu'un peut me dire comment on fait des while avec smarty ?

parce que quand je fait des while sa ma'affiche seulement la dernière donnée


Last edited by Fadile on Wed May 05, 2010 10:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Abalam
Smarty Rookie


Joined: 14 Jul 2003
Posts: 12

PostPosted: Sat Jan 21, 2006 11:44 pm    Post subject: Reply with quote

Pas de while avec smarty...
Back to top
View user's profile Send private message
Fadile
Smarty Rookie


Joined: 28 Dec 2005
Posts: 6

PostPosted: Sun Jan 22, 2006 10:19 am    Post subject: Reply with quote

eh bien comment je fait pour faire des boucle et afficher sois un titre si il n' a pas d'image sois l'image si elle est stoké en base de donné alors ?

Last edited by Fadile on Wed May 05, 2010 10:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Abalam
Smarty Rookie


Joined: 14 Jul 2003
Posts: 12

PostPosted: Sun Jan 22, 2006 10:41 pm    Post subject: Reply with quote

Je ne vois pas trop le rapport avec un while là ?
Un if ne suffirait pas ?
Back to top
View user's profile Send private message
Fadile
Smarty Rookie


Joined: 28 Dec 2005
Posts: 6

PostPosted: Mon Jan 23, 2006 4:42 pm    Post subject: Reply with quote

bas je veut afficher mes partenaire mais il sont dans ma base de donné et d'habitude je fait un while pour afficher tout les doné et je fait un if car si jammais il n'y a pas de bouton il faut que j'affiche quelque chose alors j'affiche le titre mais tout sa c'est ans la boucle while

Last edited by Fadile on Wed May 05, 2010 10:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Abalam
Smarty Rookie


Joined: 14 Jul 2003
Posts: 12

PostPosted: Tue Jan 24, 2006 2:09 pm    Post subject: Reply with quote

Utilise un {foreach} sur un array php, array qui contient toutes les données voulues.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP