Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/07/2005, 23:40
Avatar de nachopro
nachopro
 
Fecha de Ingreso: noviembre-2003
Ubicación: Haedo, Bs. As.
Mensajes: 290
Antigüedad: 20 años, 5 meses
Puntos: 2
luego de , y se me ocurrió esto:
Código PHP:
    if ($_POST['Sexo'] != 0) {
        if (
$where == "") {
            
$where "where ";
        }
        else {
            
$where .= "and ";
        }
        
$where .= "Sexo = '".$_POST['Sexo']."' ";
    }
    if (
$_POST['Orientacion'] != 0) {
        if (
$where == "") {
            
$where "where ";
        }
        else {
            
$where .= "and ";
        }
        
$where .= "Orientacion = '".$_POST['Orientacion']."' ";
    }
    if (
$_POST['Edad'] != 0) {
        if (
$where == "") {
            
$where "where ";
        }
        else {
            
$where .= "and ";
        }
        
$where .= "Edad = '".$_POST['Edad']."' ";
    }
    if (
$_POST['Pais'] != 0) {
        if (
$where == "") {
            
$where "where ";
        }
        else {
            
$where .= "and ";
        }
        
$where .= "Pais = '".$_POST['Pais']."' ";
    }
    if (
$_POST['Provincia'] != 0) {
        if (
$where == "") {
            
$where "where ";
        }
        else {
            
$where .= "and ";
        }
        
$where .= "Provincia = '".$_POST['Provincia']."' ";
    } 
no era tan complicado..

espero que les pueda llegar a ser de utilidad