Skip to content

Instantly share code, notes, and snippets.

@sinkovsky
Created October 16, 2009 11:43
Show Gist options
  • Save sinkovsky/211761 to your computer and use it in GitHub Desktop.
Save sinkovsky/211761 to your computer and use it in GitHub Desktop.
//checking for existing corresponding row in mt_entry_extra
if (!self::IsEntryExtraExist($_REQUEST['entry_id'])) {
self::InsertEntryExtra($_REQUEST['entry_id']);
}
if ($_REQUEST['blog_id'] == 3) {
$extra_values = array('entry_extra_show_tweets' => $extra_value['entry_extra_show_tweets'] );
}
$affectedRows = self::$Dbh->extended->autoExecute("mt_entry_extra", $extra_values, MDB2_AUTOQUERY_UPDATE, "entry_extra_id=".self::$Dbh->quote($_REQUEST['entry_id']));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment