Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/08/2008, 12:24
gabyrsh
 
Fecha de Ingreso: mayo-2005
Mensajes: 257
Antigüedad: 18 años, 11 meses
Puntos: 1
Respuesta: Consulta Sencilla sobre Zend y Base de Datos

Hola puse el siguiente codigo:
Código PHP:
$albums = new Categorias();
$select $albums->select();
$select->from($albums"Name")->where("Parent=?"1);
$datos =  $albums->fetchAll($select); 
Vale aclarar Existe en la base de datos, un/unos elemento que tiene Parent = 1
Y para recorrer utilizo.
Código PHP:

foreach($datos as $value){
    echo 
"a ver:".$value['Name'];

Pero me da el siguiente error:
Código PHP:
Cannot use object of type Zend_Db_Table_Row as array 
Alguna idea? Estoy perdidisimo ahora.