_DatabaseHandler::add_draft_instruction

5.x _DatabaseHandler.php _DatabaseHandler::add_draft_instruction($text)
4.x _DatabaseHandler.php _DatabaseHandler::add_draft_instruction($text)

File

classes/_DatabaseHandler.php, line 931

Class

_DatabaseHandler

Code

function add_draft_instruction($text) {
  // Adds a new "instruction" to the draft_instructions table.
  // Simple insert.
  $res = $this->db_query("INSERT INTO draft_instructions
                (instruction) VALUES ('?') ", $text);
}