salut tout le monde
j'ai réalisé un formulaire dinscription des ats aprés j'ai rélisé un script de recherche le voila
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
<?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 * FROM ens WHERE nom LIKE '%%%s%%'", $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>Pour r&eacute;einitialiser la recherche cliquer <a href="framerechercheenseignants.htm">ICI </a></p>
<p><br>
 
</p>
<?php if ($totalRows_Recordset1 > 0) { // Show if recordset not empty ?>
<table width="866" 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="136"><div align="center" class="style2">E-Mail</div></td>
	<td width="130"><div align="center" class="style2">N TEL</div></td>  
	<td width="177"><div align="center" class="style2">Adresse</div></td>
	<td width="127"><div align="center" class="style2">Grade</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['mail']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['fix']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['adresse']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['grade']; ?></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>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
je veux imprimer une attestation de travail de chacun
et j'ai le modele
je veux / quand je fait la recherche d'une personne je veux faire un boutton ou un lien pour imprimer leur attestation de travail automatiquement avec des informations remplis automatiquement sans oublié que ses information j'ai dans la base de donnée
j'éspére qu'il ya quelqu'un qui peux m'aidé merci bcp
a bientot