salut tout le monde
voila je veux affiché uniquement les enseignants titulaire
voila mon script
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 <?php require_once('Connections/connection.php'); ?> <?php $colname_Recordset1 = "1"; if (isset($_POST['nom'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['nom'] : addslashes($_POST['nom']); } mysql_select_db($database_connection, $connection); $query_Recordset1 = sprintf("SELECT nom,prenom,grade,type FROM ens WHERE type= 'TITULAIRE , مرسم/ة '", $colname_Recordset1); $Recordset1 = mysql_query($query_Recordset1, $connection) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> LA RECHERCHE DES ENSEIGNANTS </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 {color: #330033} .style2 {color: #000000} body { background-image: url(); background-color: #CCFFFF; } --> </style> </head> <body> <p align="center"> </p> <p>Pour réeinitialiser la recherche cliquer <a href="atestationtravail1.html">ICI </a></p> <p><br> </p> <?php if ($totalRows_Recordset1 > 0) { // Show if recordset not empty ?> <table width="724" border="1" > <tr> <td width="120"><div align="center" class="style2">Nom</div></td> <td width="136"><div align="center" class="style2">Prenom</div></td> <td width="127"><div align="center" class="style2">Grade</div></td> <td width="130"><div align="center" class="style2">type</div></td> <td width="177"><div align="center" class="style2">Action</div></td> </tr> <?php do { ?> <tr> <td><div align="center" class="style1"><?php echo $row_Recordset1['nom']; ?></div></td> <td><div align="center" class="style1"><?php echo $row_Recordset1['prenom']; ?></div></td> <td><div align="center" class="style1"><?php echo $row_Recordset1['grade']; ?></div></td> <td><div align="center" class="style1"><?php echo $row_Recordset1['type']; ?></div></td> <td><div align="center"><a href="impensftitu.php">IMPRIMER</a></div></td> </tr> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </table> <?php } // Show if recordset not empty ?> <?php if ($totalRows_Recordset1 == 0) { // Show if recordset empty ?> <form name="form1" method="post" action=""> L'enseignant <?php echo $_POST['nom']; ?> n'existe pas! </form> <?php } // Show if recordset empty ?> <p> </p> <p> </p> </body> </html> <?php mysql_free_result($Recordset1); ?> j'ai des erreur peux quelqu'un m'aidé merci d'avance a bientot
Partager