When i install the module this function show me an error:
function lista_admin_view(){
$header= array('ID','Grupo','Genero','Miembros','Discos Publicados');
$rows=array();
$sql="Select * from {grupos_grupo}";
$result=db_query($sql);
while($fila=db_fetch_array($result)){
$rows[]=$fila;
}
return theme('table',$header,$rows);
}

The error is:
Error: Call to undefined function db_fetch_array()

I try with a foreach but i dont have any result too. The table have elements, i dont know where is the error.
My version is 7.54
Please help

Comments

dotmundo’s picture

albertomarley’s picture

And how can i print all the table?

Jaypan’s picture

Change this:

 while($fila=db_fetch_array($result)){

To this:

foreach($result as $fila)