function _DatabaseHandler::set_variable

4.x _DatabaseHandler.php _DatabaseHandler::set_variable($name, $value)
5.x _DatabaseHandler.php _DatabaseHandler::set_variable($name, $value)

Sets a variable's value in the variables table.

Parameters

unknown_type $name:

unknown_type $value:

File

classes/_DatabaseHandler.php, line 1242

Class

_DatabaseHandler

Code

function set_variable($name, $value) {

  $res2 = $this->db_query("REPLACE INTO variables (name, value)
                              VALUES ('?', '?') ", $name, $value);

}