Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/02/2011, 09:55
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Como realizar consultas con zend

Puedes usar el objet Zend_Db_Select para eso, un ejemplo sencillo:
Código PHP:
Ver original
  1. $Select = $Db->select();
  2. $Select->from(array('p' => 'personas'), '*')
  3.             ->where('p.apellido LIKE ?', '%'.$apellido.'%');
  4.  
  5. var_dump($Db->fetchAll($Select));