Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/09/2007, 12:05
kazalla_
 
Fecha de Ingreso: septiembre-2007
Mensajes: 17
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Ayuda con php,please

$condicion="where "
f ($v_tipo!="Indiferente")
{
$condicion.="tipo='$v_tipo'";
}
if ($v_regimen!="Indiferente")
{
$condicion.=" and regimen='$v_regimen'";
}
if ($v_precio!="Indiferente")
{
$condicion.=" and precio='$v_precio'";
}
f ($v_poblacion!="Indiferente")
{
$condicion.=" and poblacion='$v_poblacion'";
}
result=mysql_query("select * t_generales.$condicion")
while (dat=mysql_fetch_array(result))
{