Aidez moi j'ai un problème avec mon code de recherche en php
arnaudsoro
Messages postés
4
Date d'inscription
Statut
Membre
Dernière intervention
-
arnaudsoro Messages postés 4 Date d'inscription Statut Membre Dernière intervention -
arnaudsoro Messages postés 4 Date d'inscription Statut Membre Dernière intervention -
<?php
if(isset($_POST['recherche'])){
$recherche=$_POST['recherche'];
if ($recherche==""){
echo"entrer le matricule";
}
else{
$reket= "SELECT * FROM information WHERE matricule LIKE %$recherche%";
$res= mysql_query($reket) or die(mysql_error());
}
}
while($reket=mysql_fetch_array($res)){
?>
<tr><td>matricule</td><tr>
<td>nom</td></tr><tr><td>prenom</td></tr><tr><td>contact</td></tr><tr><td>email</td></tr><tr><td>service</td></tr><tr><td>photo</td></tr><tr><td><?php echo $reket['matricule'];?> <tr><td><?php echo $reket['nom'];?></td></tr><tr><td><?php echo $reket['prenom'];?></td></tr><tr><td><?php echo $reket['email'];?></td></tr><tr><td><?php echo $reket ['service'];?> </td></tr><tr><td><?php echo $reket ['photo'];?></td></tr>
<?php
}
?>
<body><form method="post" enctype="multipart/form-data">
<p>recherche<input type="text" name="recherche" ></p>
<label>
<input type="submit" name="OK" value="OK" align="right" />
</label>
</form>
if(isset($_POST['recherche'])){
$recherche=$_POST['recherche'];
if ($recherche==""){
echo"entrer le matricule";
}
else{
$reket= "SELECT * FROM information WHERE matricule LIKE %$recherche%";
$res= mysql_query($reket) or die(mysql_error());
}
}
while($reket=mysql_fetch_array($res)){
?>
<tr><td>matricule</td><tr>
<td>nom</td></tr><tr><td>prenom</td></tr><tr><td>contact</td></tr><tr><td>email</td></tr><tr><td>service</td></tr><tr><td>photo</td></tr><tr><td><?php echo $reket['matricule'];?> <tr><td><?php echo $reket['nom'];?></td></tr><tr><td><?php echo $reket['prenom'];?></td></tr><tr><td><?php echo $reket['email'];?></td></tr><tr><td><?php echo $reket ['service'];?> </td></tr><tr><td><?php echo $reket ['photo'];?></td></tr>
<?php
}
?>
<body><form method="post" enctype="multipart/form-data">
<p>recherche<input type="text" name="recherche" ></p>
<label>
<input type="submit" name="OK" value="OK" align="right" />
</label>
</form>
A voir également:
- Aidez moi j'ai un problème avec mon code de recherche en php
- Code ascii - Guide
- Comment déverrouiller un téléphone quand on a oublié le code - Guide
- Recherche automatique des chaînes ne fonctionne pas - Guide
- Code puk bloqué - Guide
- Code activation windows 10 - Guide
4 réponses
C'est une blague ?
arnaudsoro
Messages postés
4
Date d'inscription
Statut
Membre
Dernière intervention
si tu peux m'aider ?