Bonjour, voila je ne sais pas pourquoi mais il n'y a rien qui s'affiche ! merci de me dire ce qui cloche dans mon code:
<? $log = $_SESSION['login']; require ("warning/config.inc.php"); $db = mysql_connect("$mysql_localhost","$mysql_user","$mysql_pass") or die('Erreur SQL !<br>'.$sql3.'<br>'.mysql_error()); mysql_select_db($mysql_db,$db) or die('Erreur SQL !<br>'.$sql3.'<br>'.mysql_error()); $sql3 = "select * from bio_commentaire_news where id='$id_comment_news' Order by id"; $req3 = mysql_query($sql3) or die('Erreur SQL !<br>'.$sql3.'<br>'.mysql_error()); while ($cfg3 = mysql_fetch_array($req3)); { $sql4 = "select * from bio_membre where pseudo='$cfg3[pseudo]'"; $req4 = mysql_query($sql4) or die('Erreur SQL !<br>'.$sql4.'<br>'.mysql_error()); $cfg4 = mysql_fetch_array($req4); if($log == ''.$cfg3[pseudo].'') { echo '<table width="381" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="112" rowspan="4" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="50" valign="top" background="uploads/'.$cfg4[avatar].'"><a href="index2.php?rub=membre_detail&pseudo='.$cfg3[pseudo].'"><img src="images/maske.gif" width="50" height="50" border="0"></a></td> </tr> </table></td> <td width="62"> </td> </tr> <tr> <td height="66" colspan="2" valign="top"><p>Par : '.$cfg3[pseudo].'<br> Posté le : '.$cfg3[date].'<br> A : '.$cfg3[heure].'<br> </p></td> </tr> </table></td> <td height="19" colspan="2" valign="top">'.$cfg3[texte].'</td> </tr> <tr> <td width="50" height="7"></td> <td width="219"></td> </tr> <tr> <td height="29" valign="top"><a href="index2.php?rub=sup_comment_news&id='.$cfg3[id].'&pseudo='.$cfg3[pseudo].'"><img src="images/supp.gif" width="50" height="10" border="0"></a><br> <a href="index2.php?rub=mod_comment_news&id='.$cfg3[id].'&pseudo='.$cfg3[pseudo].'"><img src="images/modif.gif" width="50" height="10" border="0"></a> </td> <td></td> </tr> <tr> <td height="109"> </td> <td></td> </tr> <tr> <td height="20" colspan="3" valign="top"><hr noshade></td> </tr> </table> '; } else{ echo'<strong><center>Les Commentaires des news</center></strong><br> <br> <br> <table width="381" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="112" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="50" valign="top" background="uploads/'.$cfg4[avatar].'"><a href="index2.php?rub=membre_detail&pseudo='.$cfg3[pseudo].'"><img src="images/maske.gif" width="50" height="50" border="0"></a></td> </tr> </table></td> <td width="62"> </td> </tr> <tr> <td height="66" colspan="2" valign="top"><p>Par : '.$cfg3[pseudo].'<br> Posté le : '.$cfg3[date].'<br> A : '.$cfg3[heure].'<br> </p></td> </tr> </table></td> <td height="19" valign="top">'.$cfg3[texte].'</td> </tr> <tr> <td width="269" height="145"></td> </tr> <tr> <td height="20" colspan="2" valign="top"><hr noshade></td> </tr> </table>'; } } ?>
|