Voila j'ai un problème de boucle avec mon tableaux plus la publicité que j'ai mis pour mon annuaire je vous montre mon code..
<?php
$count_pub = 0;
while ($resultat = mysql_fetch_array($res_site,MYSQL_ASSOC))
{
if($count_pub == '3')
{
echo '<table width="97%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #D0CECE; background-color: #F6F4F4; text-align:top;" valign="top" >
<tr>
<td style="padding:10px; background-color: #F6F4F4; text-align:top;" valign="top" align="center">
<div align="center">
$lk = connection_BD(); // Connection
// Recherche de 1 site aléatoire
$sql2 = "SELECT titre, description, url FROM $T_sites ORDER BY id DESC LIMIT
1";//envoie de la requete
// Un site aléatoire
while($result = mysql_fetch_array($ale))
{
$titre_ale = $result['titre'];
$description_ale = $result['description'];
$url_ale = $result['url'];?> <a href="<?php echo $url_ale; ?>" target="_blank"><img alt="<?php echo
$titre_ale; ?>" width="120" height="90" border="0" title="<?php echo
$titre_ale; ?>" src="http://www.thumbzor.com/tel.php?url=<?php echo
" src="http://www.thumbzor.com/tel.php?url=<?php echo $url_ale; ?>&remplace=http://www.bloc-annuaire.fr/images/tel.gif" style="border:none;padding:2px;border: #d5d5d5 2px solid; margin:8px;"></a><?php
}
</div>
</td>
<td width="83%" align="left" style="padding-left:10px; background-color: #F6F4F4; layer-background-color: #D6F4D0; border: 1px none #F6F4F4;">
<script type="text/javascript"><!--
google_ad_client = "**********************";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "F6F4F4";
google_color_bg = "F6F4F4";
google_color_link = "0066CC";
google_color_text = "666666";
google_color_url = "11593C";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
<td colspan="2" style="background-image:url(images/fondfh2.gif);"> </td>
</table>';
}
affiche_site2($resultat,'index');
$count_pub++;
}
?>
Merci d'avance pour vos réponse..Cordialement
romain
++