Bonjour à tous, j'utilise (enfin j'essaye) la fonction fctaffichimage()
apparement son utilisation se fait comme cela
<img alt="" <?php fctaffichimage('repimg/monimage.jpg', 120, 100) ?> />
je cherche à l'adapter à ce bloc php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <?php require('connexion.inc.php');
require('fctaffichimage.php');
$sql_rub = 'Select rubrique_user, nom_rubrique From rubriques Order By rand()';
$result_rub = mysql_query($sql_rub) or die(mysql_error());
if(mysql_num_rows($result_rub) > 0)
{
echo '<div class="noir" align="center">';
echo '<ul id="rubriques">'."\n";
while($row_rub = mysql_fetch_assoc($result_rub))
{
$sql_img = 'Select chemin_image From users_images Natural Join users Where rubrique_user='.$row_rub['rubrique_user'].' Order By Rand() Limit 1';
$result_img = mysql_query($sql_img);
$row_img = mysql_fetch_row($result_img);
echo "\t".'<li>
<a href="'.$row_img[0].'" title="le mur" rel="splash.image" >
INTEGRER ICI ----> <img src="'.$row_img[0].'" alt="" />
<a href="http://www.monsite.com/rubrique'.$row_rub['rubrique_user'].'.php">
<p>'.$row_rub['nom_rubrique']."</p>
</a>
</li>\n";
}
echo '</ul>'."\n";
}
else
{
echo '<p>Pas de rubrique !</p>';
echo '</div>';
} ?> |
je ne vois pas comment le faire.
Merci
Partager