Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function updateOptions($data)
- {
- sql::run(
- " UPDATE `{newsticker_meta}` SET ".
- " `refreshrate` = '".
- sql::escape($data['refreshrate'])."',".
- " `numitems` = '".
- sql::escape($data['numitems'])."'".
- " WHERE `ID` = '1'");
- if (sql::affected() == -1) {
- tooltip::display(
- sprintf(_("Item couldn't be updated! Error: %s"),
- sql::error()),
- TOOLTIP_ERROR);
- return false;
- } else {
- tooltip::display(
- _("Item has been successfully updated."),
- TOOLTIP_SUCCESS);
- }
- return true;
- }
Add Comment
Please, Sign In to add comment