IT Placement Papers CMS Moodle
This category contains Moodle Interview Questions and Answers
Search by tag : CMS Interview Questions, Moodle Interview Questions |
How do I insert/retrieve records in the database, without creating my own database connections?
|
|
|
|
|
Always use the "datalib" functions, such as insert_record() or
get_record(). Since Moodle 1.7 these are found in lib/dmllib.php. Using
these functions helps with database abstraction (e.g. running on either
MySQL or Postgres) as well as maintaining a single database connection.
Moodle uses ADODB for database abstraction.
Related items
Only registered users can write comments. Please login or register.
|