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 31 32 33 34 35 36 37
   | <?
 
include "connexion1.php";
include "debut.incVitrine.php";
 
 
   // *la requête
        $table="Produit";
        $requete="select * from ".$table." Where Type_Sexe='F';";
        $resultat= mysql_query($requete,$connexion1);
 
   // l'en tête des colonnes du tableau
        echo "<titre><h1>Table : ".$table."</h1></titre>";
        echo '<p /><table border="2" width="75%">';
        echo "<tr>";
        for( $i=0; $i < mysql_num_fields($resultat); $i++)
              echo "<th>".mysql_field_name($resultat, $i)."</th>";
        echo "</tr>";
 
   //  le parcours des lignes et des champs
        while($ligne=mysql_fetch_array($resultat))
		<input type="checkbox" name="$resultat"
        {    echo "<tr>";
 
             for($i=0;$i< mysql_num_fields($resultat); $i++)
                 echo "<td>$ligne[$i]</td>";
             echo "</tr>";
        }
 
   // fin du tableau et compte des lignes
        echo "</table><p />";
        echo "Il y a ".mysql_num_rows($resultat)." lignes dans la table ".$table;
   echo '<h3><a href="index.html">RETOUR au menu FRINGUES </a></h3>';
mysql_close($connexion1);
?>
</body>
</html> |