Re: [php-france] Bouché un trou dans un tableau html en php
by Marc Gavage other posts by this author
Oct 30 2006 1:27PM messages near this date
[php-france] Bouché un trou dans un tableau html en php
|
Re: [php-france] Bouché un trou dans un tableau html en php
if (nombre_d_image%2)
{
$image[$nombre_d_image]='<img src="image_x"/> ';
}
En d'autre terme, s'il exite une reste a la division du nombre d'image
par 2 alors ajoute une image "x"
Marc.
Tommy Turcotte a écrit :
> Bonjour,
> j'ai fais présentment un tableau html en php.
>
> Il affiche une liste d'image dans un tableau sur deux colonne.
>
> Pas de problème avec sa.
>
> Le problème arrive quand j'ai un résultat
> impair
>
> Quand j'ai un nombre impair a afficher dans la
> dernièr case c'est un trou blanc.
>
> J'aimerais pouvoir lui dire que si le nombre est impair
> de placer l'image X dans la case , ce qui ne ferais pas
> de trou blanc.
>
> Je ne trouve pas comment faire
>
> Avez-vous rencontré le problème ou connaissez-vous un
> exemple à me montrer
>
> Merci
>
>
>
>
> Tommy Turcotte
> tommyt@[...].ca
> http://planete.qc.ca
>
--
Se désabonner ? Envoyez un mail à php-france-unsubscribe@[...].org
Plus d'informations ? Envoyez un mail à sympa@[...].org ayant pour sujet HELP
Thread:
Tommy Turcotte
Marc Gavage
Marc Gavage
Tommy Turcotte
Marc Gavage
Tommy Turcotte
|