1 2 3 4 5 6 7 8 9 10 11 12
| <?php include("lib/connexion.inc.php");
if(isset($_GET['nom'], $_GET['prenom'])) {
$result = mysql_query("SELECT*,ROUND(DATEDIFF(CURDATE(),`datenaiss`)/365) FROM fiche AS f
INNER JOIN datpro AS d ON f.num_registre = d.num_registre
WHERE f.nom LIKE '%".mysql_real_escape_string($_GET['nom'])."%' AND f.prenom LIKE '%".mysql_real_escape_string($_GET['prenom'])."%'") or die ('Erreur sql');
while ( $row = mysql_fetch_assoc($result)){
echo "Registre/Presta : <input size='5' value='".$row['num_registre']."'>Entreprise : <input size='12' value='".$row['entreprise']."'>
Entrée : <input size='8' value='".$row['date_entree']."'>Sortie : <input size='8' value='".$row['date_sortie']."'><br>
Nom : <input size ='12' value='".$row['nom']."'>Prénom : <input size='12' value='".$row['prenom']."'><br>
Adresse : <input size='25' value='".$row['rue']."'>Code postal : <input size='6' value='".$row['code_postal']."'>Ville : <input size='16' value='".$row['ville']."'><br><br> "; }
}
?> |
Partager