Databases: Create my custom table in moodle database

Databases: Create my custom table in moodle database

by Sukhjinder Kainth -
Number of replies: 2
I'm writing a quiz system using moodle's user/course management. Users log in to moodle then navigate out of the moodle to my quiz management system. I want to manipulate quiz information in my own tables using moodle's DB global object. Currently I'm executing queries on my database tables using PHP's standard methods i.e open connection, run query get results, close connection, etc. How can I achieve the same using moodle's API. thanks!
Average of ratings: -
In reply to Sukhjinder Kainth

Re: Databases: Create my custom table in moodle database

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Tim Hunt

Re: Databases: Create my custom table in moodle database

by Paul Davis -

Hi,

I uploaded the new plugin that contains the new table that I want to create. How do I perform the installation of this table? in Site Administration -> notifications doesn't work. Please help.

Note: I followed the procedure of the above links, I don't know what I'm missing.