Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/07/2010, 10:35
Erick_SS
 
Fecha de Ingreso: diciembre-2009
Ubicación: San Salvador, El Salvador
Mensajes: 20
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: Formulario de Busqueda para MySql y PHP

Código PHP:
if($_GET["sexo"]!="0")
{
$query .= " genero='".$_GET["sexo"]."' ";
}

y selecciona el idioma:
if(
$_GET["idioma"]!="0")
{
$query .= " and (hab_idioma1='".$_GET["idioma"]."' or hab_idioma2='".$_GET["idioma"]."') ";
}

y selecciona el nivel del idioma:
if(
$_GET["nivel_idioma"]!="0")
{
$query .= "and ( hab_idioma_nivel1='".$_GET["nivel_idioma"]."' or hab_idioma_nivel2='".$_GET["nivel_idioma"]."' ) ";
}

TENDRIA LO SIGUIENTE:
$query="genero='m' and (hab_idioma1='ingles' or hab_idioma2='ingles') and ( hab_idioma_nivel1='intermedio' or hab_idioma_nivel2='intermedio' )"