Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2011, 18:28
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: consulta con and y enteros no funciona

Prueba así:

Código PHP:
Ver original
  1. $query="select * from propiedades where categoria='$categoria' and
  2. operacion='$operacion' and precio>=$precioa and precio<=$precio2";
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP