Tema: Condicion
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/05/2011, 13:56
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 8 meses
Puntos: 2135
Respuesta: Condicion

Pues solo agrega en tu consulta SQL que sean diferentes de 1, por ejemplo:
Código SQL:
Ver original
  1. SELECT * FROM tabla WHERE cat_id != 1

Saludos.