par
romain35 » 25 avr. 2007, 20:29
ok !
<?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\">"; // Fin de la fonction ECHO
$lk = connection_BD(); // Connection
// Recherche de 1 site aléatoire
$sql2 = "SELECT titre, description, url FROM $T_sites ORDER BY RAND() 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'];
echo "<a href=\"$url_ale\" target=\"_blank\"><img alt=\"$titre_ale\" width=\"120\" height=\"90\" border=\"0\" title=\"$titre_ale\" src=\"http://www.thumbzor.com/tel.php?url= ///il manque un truc d'apres ton code
\" src=\"http://www.thumbzor.com/tel.php?url=$url_ale&remplace=http://www.bloc-annuaire.fr/images/tel.gif\" style=\"border:none;padding:2px;border: #d5d5d5 2px solid; margin:8px;\"></a>";
}
echo "</div>
</td>
<td width=\"83%\" align=\"left\" style=\"padding-left:10px; background-color: #F6F4F4; layer-background-color: #D6F4D0; border: 1px none #F6F4F4;\">";
/////////////Balise script
echo "<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>";
/////////////////////Fin du script
echo "</td>
</tr>
<td colspan=\"2\" style=\"background-image:url(images/fondfh2.gif);\"> </td>
</table>";
}
affiche_site2($resultat,'index');
$count_pub++;
}
?>
Cordialement
romain
++
ok !
[php]<?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\">"; // Fin de la fonction ECHO
$lk = connection_BD(); // Connection
// Recherche de 1 site aléatoire
$sql2 = "SELECT titre, description, url FROM $T_sites ORDER BY RAND() 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'];
echo "<a href=\"$url_ale\" target=\"_blank\"><img alt=\"$titre_ale\" width=\"120\" height=\"90\" border=\"0\" title=\"$titre_ale\" src=\"http://www.thumbzor.com/tel.php?url= ///il manque un truc d'apres ton code
\" src=\"http://www.thumbzor.com/tel.php?url=$url_ale&remplace=http://www.bloc-annuaire.fr/images/tel.gif\" style=\"border:none;padding:2px;border: #d5d5d5 2px solid; margin:8px;\"></a>";
}
echo "</div>
</td>
<td width=\"83%\" align=\"left\" style=\"padding-left:10px; background-color: #F6F4F4; layer-background-color: #D6F4D0; border: 1px none #F6F4F4;\">";
/////////////Balise script
echo "<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>";
/////////////////////Fin du script
echo "</td>
</tr>
<td colspan=\"2\" style=\"background-image:url(images/fondfh2.gif);\"> </td>
</table>";
}
affiche_site2($resultat,'index');
$count_pub++;
}
?>[/php]
Cordialement
romain
++