⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

data filtering problems



mamm630322
  • profile picture
  • Member

Posted 28 July 2015 - 02:56 AM

help me

code to filter data using SET RELATION n-n

 

$crud->set_relation_n_n('Alumnos','proyectosalumnos','alumnos','fk_proyecto','fk_alumno','nombre_alumno');

 

Only students with status = 0

 

how is this written?

 

 


mamm630322
  • profile picture
  • Member

Posted 29 July 2015 - 02:11 AM

Gracias 

Ya encontré la solución

solo era cuestión de agregar un filtro 

$valor = 0;
$where = 'alumnos.fk_proyectoalu  = '.$valor;