Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
Bonsoir tout le monde.
Je suis en détresse. Pour mon site internet, j'ai fait un code php qui exécute une requête afin d'afficher des images le détail que les internautes dépose sur mon site. Mais quand, je l'exécute, il m'affiche cette erreur:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home5/a/afrique-plus/www111/page_actualite.php on line 59
Voici mon code:
Code:
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
|
<?php
$dy="SELECT * FROM produit";
$fc = mysql_query($dy);
while($rep = mysql_fetch_array($fc))
{
echo'
<table width="100%" height="0%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="8%" rowspan="2" align="left" class="Style88 Style92"><div align="left"><img src="'.$rep['ImageProd'].'" width="90" height="65" align="left" /></div></td>
<td width="9%" rowspan="2" align="left" class="Style88 Style92"> </td>
<td width="83%" height="9%" class="Style88 Style92"><p align="left" class="Style83"><span class="Style148"><span class="Style151">'.$rep['TitrProd'] .'</span><br/>
</span><br />
</p></td>
</tr>
<tr>
<td height="80%" class="Style83"><h1 class="Style103"><span class="Style83 Style101 Style143"><span class="Style101 Style145">Prix</span></span>: <strong>'.$rep['PrixProd'] .' fcfa </strong></h1>
<p class="Style103">Publié le: <span class="Style149">11/04/2010 </span></p>
<p class="Style150">'.$rep['DetailProd'].'</p>
<p class="Style146"><a href="#">Voir contact</a></p></td>
</tr>
<tr>
<td height="11%" colspan="3" align="center" class="Style113">----------------------------------------------------------------------------</td>
</tr>
</table>';
}
?> |
Pourriez-vous m'aider ?