je n'ai aucune erreur mais rien ne s'affiche???? a comprend pas moi
lolll :-)
 
 
 <html>
  <head>
   <title> Atelier PHP N°4 - testDb.php </title>
 
 <?php
               $db = mysql_connect("localhost","root","cocodirasta" );
              function mysql_die($error = "inconnue" )
              {
                      echo "<H1>Erreur :". $error."</H1>";
                         exit;
                         }
               mysql_select_db("projet",$db);
 
          $requete = "SELECT * FROM clients WHERE nom_cli='ASSTEC2' ";
                  $result = mysql_query ($requete,$db);
         $article =mysql_fetch_object($result);
    mysql_free_result($result);
 
 
                 ?>
 
                   </head>
                   <body>
            <?php echo $clients->num_cli ?>
                 <BR>
            <?php echo $clients->nom_cli ?>
                  <BR>
            <?php echo $clients->adr_cli ?>
                  <BR>
            <?php echo $clients->ville_cli ?>
                   <BR>
            <?php echo $clients->cp_cli ?>
                   <BR>
            <?php echo $clients->num_tel_cli ?>
                  </body>
                   </html>
~
[quote]