ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-france
php-france
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved