Pourquoi mon programme ne fonctionne pas?

tonguim -  
 tonguim -
Bonsoir,

j'ai les messages d'erreurs suivants
Notice: Undefined variable: row in c:\program files\autres\easyphp1-7\www\new_version\html\actualites\fractualites.php on line 122
	
Notice: Undefined variable: row in c:\program files\autres\easyphp1-7\www\new_version\html\actualites\fractualites.php on line 123

Notice: Undefined variable: corps in c:\program files\autres\easyphp1-7\www\new_version\html\actualites\fractualites.php on line 126


produits par le code suivant:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--
.arrierePlan {
	background-attachment: fixed;
	background-image:     url(../../images/pagesHtml/divers/fondDePage.GIF);
	background-repeat: no-repeat;
	background-position: 1px 1px;
}
.police {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	line-height: 1.5pt;
	font-weight: normal;
}
a:link {
	color: #336699;
}
a:visited {
	color: #999999;
}
a:hover {
	color: #6699ff;
}
a:active {
	color: #336699;
}
-->
</style>

</head>

<body class="arrierePlan" onLoad="MM_preloadImages('../../images/pagesHtml/divers/logoSurvole.gif')">
	<!--connection au serveur MySql et à la base de données-->
	<?php
		$conn_mysql=mysql_connect("localhost", "root", "");
		if($conn_mysql)
		{
			$conn_bd=mysql_select_db("sitewuo");
			if($conn_bd)
			{
				if(isset($HTTP_VAR_GET['numeroArticles']))
				{
					//$requete="select * from articles where numero= ". $HTTP_VAR_GET['numeroArticles'];
					$requete="select * from articles where numero=' ". $HTTP_VAR_GET['numeroArticles']."'";
					$resultat=mysql_query($requete);
					$row=mysql_fetch_array($resultat);
					
                    $date=$row['date'];
                    $titre=$row['titre'];
                    $corps=$row['corps'];					
				}
	?>							
<table width="727" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top"> 
		<td width="77" height="88"><a href="../../index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logo_UO','','../../images/pagesHtml/divers/logoSurvole.gif',1)"><img src="../../images/pagesHtml/divers/logoOriginal.gif" alt="retour à la page d'accueil" name="logo_UO" width="90" height="83" border="0"></a></td>
    	<td width="325"> </td>
	    <td width="325" valign="middle"> <div align="right"><font color="#003399" size="2" face="Arial, Helvetica, sans-serif">Université 
        de Ouagadougou</font><strong><font color="#003399" size="5" face="Arial, Helvetica, sans-serif"><br>
        Actualités</font></strong></div></td>
	</tr>
  	<tr> 
    	<td> </td>
    	<td colspan="2">
			<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
        		<tr> 
          			<td> <font size="2" face="Arial, Helvetica, sans-serif"><A HREF="Javascript:history.go(-1)">Retour 
            à la page précédente</A> </font></td>
          			<td><font size="2" face="Arial, Helvetica, sans-serif"><a href="fractualites.html">Archives</a></font></td>
	        	</tr>
	      	</table>
      		<p align="left"> </p>
      		<div align="left"> 
        	
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="22%"><?php echo $row['date'] ?></td>
            <td width="78%"><?php echo $row['titre'] ?></td>
          </tr>
          <tr> 
            <td colspan="2"> <p align="left"> <font size="2" face="Arial, Helvetica, sans-serif"><?php echo $corps ?><br>
                </font></p></td>
          </tr>
        </table>
      		</div>
      </td>
	</tr>
</table>

	<?php
			}
	
			else //si echec de la connection a la base de donnees
				die(mysql_error());
		}
		else //si echec de la connection au serveur mysql
			die(mysql_error()); //<?php echo $_GET['numeroArticles']
	?>
</body>
</html>


Je n'arrive pas à trouver les causes des erreurs, pouvez vous m'aider s'il vous plaît?

2 réponses

Utilisateur anonyme
 
j'ai omis ceci dans mon précédent message:
ligne122: <td width="22%"><?php echo $row['date'] ?></td>
ligne123: <td width="78%"><?php echo $row['titre'] ?></td>
ligne126: <td colspan="2"> <p align="left"> <font size="2" face="Arial, Helvetica, sans-serif"><?php echo $corps ?><br>
0
tonguim
 
problème résolu.
0