<?php
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("bapfe")or die('Pas de Base de donn\351');
$sql1= mysql_query("(SELECT t.TYPE
FROM TYPE AS t, assocts AS l, smodule AS s, filiere AS f
WHERE t.idT = l.idT
AND l.idS = s.idS
AND nomF = '$e'
AND annee =$d
AND nomS ='$c')");
while($result=mysql_fetch_array($sql1))
{
$type1 = $result['TYPE'];
echo '<th>'.$type1.'</th>';
}
echo'<th><input type='text' name='note1' value='' /></th>';
mysql_connect("localhost","root","123") or die(mysql_error());
mysql_select_db("basepfe")or die('Pas de Base de donn\351');
$sql= mysql_query("select * from etudiant");
while($result=mysql_fetch_array($sql))
{
$num = $result['num'];
$nom = $result['nomE'];
$prenom = $result['prenom'];
echo'<tr>';
echo'<th>'.'$num'.'</th>';
echo'<th>'.' $nom'.'</th>';
echo'<th>'.' $prenom'.'</th>';
echo'<th><input type="text" name="note2" value=""/></th>';
echo'</tr>';
}
?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
28 mai 2014 à 12:34
oui j' utilise th juste pour garder le meme style des cases.(gras,...) ctt
merci