Message original de laurent
Le : 28/01/2008 à 14:31:11
Dejà lu 3879 fois avant vous
Bonjour,
Je souhaiterai faire appel à vos compétences, car impossible de régler mon problème, je suis débutant, ...
J'ai un script de boutique qui m'affiche le résultat, affichage des produit ligne par ligne, 1 produit par ligne, je souhaiterais pouvoir en afficher 2 par lignes, comment puis-je faire avec cette portion de code, encore merci d'avance pour votre lumière.
" <?php if ($totalRows_rs_products > 0) { // Show if recordset not empty ?>
<?php do {
?>
<br>
<table border=0 cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/1.gif" height="12"></td>
<td><img src="images/2.gif" width="100%" height="12"></td>
<td><img src="images/3.gif" height="12"></td>
</tr>
<tr>
<td><img src="images/4.gif"></td>
<td background="images/5.gif" width="100%" height="28"><font color="#6C769C" size="2" face="verdana">
<div align="CENTER"><table width="100%"><tr><td><div style="text-align: left"><STRONG><?php echo $row_rs_products['title']; ?> </STRONG></div></font></td>
<td width="200"></td>
<td><div style="text-align: right"><font color="#6C769C" size="2" face="verdana"><b><?php echo $row_rs_products['Price']; ?> <?php echo $currency;
?></b></font></div></td>
</tr>
</table>
</div>
</td>
<td><img src="images/6.gif"></td>
</tr>
<tr>
<td background="images/7.gif" width="10" height="100%"></td>
<td>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81" align="left" valign="top">
<br>
<table width="81" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81" height="70" align="center" valign="middle"><a href="javascript:;">
<?php
// Show IF Conditional region4
if (@$row_rs_products['ImageURL'] != NULL) {
?>
<?php if ($row_rs_settings['se_links']==1){ ?><a href="description-<?php echo $row_rs_products['Code']; ?>-<?php echo $MM_keepURL;?>.html"><?php }else{ ?> <a href="index.php?mod=descr&id_desc=<?php echo $row_rs_products['Code']; ?>&<?php echo $MM_keepURL; ?>"><?php }?> <img src="<?php echo $objDynamicThumb1->Execute(); ?>" alt="<?php echo $row_rs_products['title']; ?>" border="0" /></a>
<?php }
// endif Conditional region4
?> </a></td>
</tr>
</table></td>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td colspan="3" ><font color="5B5C5E" size="2" face="verdana"><?php echo strip_tags(substr($row_rs_products['Description'],0,255)); ?> ...</font></td>
</tr>
</table></div>
<table width="100%">
<tr height="30" >
<td colspan="3" class="productText">
<a href="index.php?mod=descr&id_desc=<?php echo $row_rs_products['Code']; ?>&<?php echo $MM_keepURL; ?>"><img src="images/plus_info.gif" border="0"></a>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
<td background="images/8.gif" width="9" height="100%"></td>
</tr>
<tr>
<td ><img src="images/9.gif"></div></td>
<td><img src="images/10.gif" height="32" width="100%"></td>
<td><img src="images/11.gif"></div></td>
</tr>
</table>
<?php } while ($row_rs_products = mysql_fetch_assoc($rs_products));
?>
"