Banco de dados

Banco de dados

by Arnhan Brick -
Number of replies: 1

Hi, I would like some help if possible.

I'm trying to access data from the moodle database, but I'm not able to

present this data in a user-friendly way.

I'm using the following syntax:

       $curso =  $DB->get_records_sql('SELECT id, fullname FROM {course}');

       print_r ($curso);

I want to display all records of  (id, fullname) from the {course} table.

How do I proceed?

Thanks



Average of ratings: -