Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/02/2008, 09:48
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Re: Seleccionar por estatus

Puedes usar OR o IN:
Código PHP:
$sql="SELECT * FROM categorias WHERE status IN( 1, 2) ORDER BY nombre_categoria ASC";  
// o
$sql="SELECT * FROM categorias WHERE status = 1 OR status = 2 ORDER BY nombre_categoria ASC"
Saludos.