Exercise on Drupal Database API Basics - Drupal Training Curriculum for Drupal Companies

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

Back to Drupal exercises for the in-class training

Exercise on Drupal Database API Basics

Areas covered

  • Build a module
  • Database API
  • Creating tables
  • Update columns

Question

Create a Drupal instance.
Create a form to insert the mark list of a class room, which includes student name, subject and mark scored for each subject.
Create the database table with needed columns using code. Once the table is created, add one more column 'status' to the above table.

Fetch all the marks in a list with following details
* Student name
* Subject
* Mark scored
* Status (Absent, if the student didn't attend the exam)
* There should be a filter with Student name and subject

Curriculum and Training

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week