Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By albertomarley on
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
This function does not exist
This function does not exist in D7. See https://api.drupal.org/api/drupal/includes%21database.pgsql.inc/function...
And how can i print all the
And how can i print all the table?
Change this:
Change this:
To this: