cs_buster20
Messages postés10Date d'inscriptionmardi 28 mars 2006StatutMembreDernière intervention24 novembre 2007
-
28 juin 2007 à 16:45
cs_buster20
Messages postés10Date d'inscriptionmardi 28 mars 2006StatutMembreDernière intervention24 novembre 2007
-
28 juin 2007 à 18:41
bonjour je voudrai que les membres de mon site peuvent rechercher d'autre membre.
Il y a un champ "sexe, pays et code postal" mais quand il y a rien dans le champ "code postal" on trouve pas de membre la page est toute blanche
<!--------------formulaire-------------->
<form action="search.php" method='post' >
Sexe
Fille
Garçon
<?php
include ('conf.php');
$sexe= $_POST['sexe'];
$pays= $_POST['pays'];
$code_postal= $_POST['code_postal'];
$search = mysql_query("SELECT * FROM tbl_member WHERE sexe='$sexe' AND pays='$pays' AND code_postal='$code_postal'");
while ($result = mysql_fetch_array($search) )
{
echo $result['login'];
}
mysql_close();
?>
est ce qu'il y a quelqu'un qui peut me venir en aide svp