Ah merci beaucoup c'est déjà mieux ! Mais j'ai des erreurs comme celle-là sur tout les champs :
Notice: Trying to get property of non-object in C:\wamp\www\Declik\pages\recherche.php on line 48
J'ai assez souvent cette erreur et je sais jamais la corrigée et en cherchant sur internet pleins de monde l'ont mais je ne trouve pas de sujet avec un rapport au miens 
Voici le code la page recherche.php si tu as besoin : 
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
|
<body>
<?php include "../include/menu.php"; ?>
<?php
include "../include/fonctions.php";
$connex = connexion_bd();
$req="SELECT * FROM client WHERE Num_Client LIKE ? OR Nom_Client LIKE ? OR Prenom_Client LIKE ? ORDER BY Num_Client DESC";
$sth =$connex->prepare($req);
$requete = '%' . $_POST['requete'] . '%';
$sth->execute(array($requete, $requete, $requete));
$donnees="";
?>
<div align="center"><table class="tatable">
<p><input class="bouton" type="submit" name="delete" id="delete" class="delete" value="Supprimer la sélection">
<input class="bouton" type="button" value="Ajouter un client(e)" onclick="location.href='javascript:ajoutclientpop();';"></p>
<tr>
<th>Numéro</th>
<th>Nom</th>
<th>Prénom</th>
....
<th>Sélection</th>
<th>Supprimer</td>
</tr>
<?php while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {?>
<tr>
<td><?php echo $row->Num_Client?></td>
<td><a href="javascript:PopupWindow(this,'../formulaire/client.form.modifier.php?client_id=<?php echo $row->Num_Client?>');"><?php echo $row->Nom_Client?></a></td>
<td><?php echo $row->Prenom_Client?></td>
<td><?php echo $row->Adresse_Client?></td>
<td><?php echo $row->CP_Client?></td>
<td><?php echo $row->Ville_Client?></td>
<td><?php echo $row->Telephone_Client?></td>
<td><?php echo $row->Portable_Client?></td>
<td><?php echo $row->Mail_Client?></td>
<td><input type="checkbox" name="del[]" value="<?php echo $row->Num_Client?>" class="del" id="del"/> </td>
<td><a href="../include/supprimer_client.php?client_id=<?php echo $row->Num_Client?>"><img src="../image/supprimer.png"></a></td>
</tr>
<?php }?>
</table>
</div>
</body> |
Partager