Skip to content

Instantly share code, notes, and snippets.

@rxu
Created November 3, 2015 17:11
Show Gist options
  • Save rxu/a304b4fd08cc14d595fd to your computer and use it in GitHub Desktop.
Save rxu/a304b4fd08cc14d595fd to your computer and use it in GitHub Desktop.
db_text update fix
$sql = 'UPDATE ' . $this->table . "
SET config_value = '" . $this->db->sql_escape($value) . "'
WHERE config_value <> '" . $this->db->sql_escape($value) . "'
AND config_name = '" . $this->db->sql_escape($key) . "'";
$this->db->sql_query($sql);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment