function DatabaseHandler::add_draft_instruction

7.x DatabaseHandler.php DatabaseHandler::add_draft_instruction($text)
6.x DatabaseHandler.php DatabaseHandler::add_draft_instruction($text)

File

classes/DatabaseHandler.php, line 691

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);
}