// end of the 'PMA_addBookmarks()' function /** * Deletes a bookmark * * @global resource the controluser db connection handle * * @param string the current database name * @param array the bookmark parameters for the current user * @param integer the id of the bookmark to get * * @access public */ function PMA_deleteBookmarks($db, $cfgBookmark, $id) { global $controllink; $query = 'DELETE FROM ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table']) . ' WHERE (user = \'' . PMA_sqlAddslashes($cfgBookmark['user']) . '\'' . ' OR user = \'\')' . ' AND id = ' . $id; $result = PMA_DBI_try_query($query, $controllink); } // end of the 'PMA_deleteBookmarks()' function /** * Bookmark Support */ if (!isset($GLOBALS['cfgRelation'])) { require_once './libraries/relation.lib.php'; $GLOBALS['cfgRelation'] = PMA_getRelationsParam(); } if ($GLOBALS['cfgRelation']['bookmarkwork']) { $cfg['Bookmark'] = PMA_getBookmarksParam(); } else { $cfg['Bookmark'] = array(); }
$result = mysql_query($query, $GLOBALS['dbh']); } else { $result = mysql_query($query); } } // end of the 'PMA_addBookmarks()' function /** * Deletes a bookmark * * @param string the current database name * @param array the bookmark parameters for the current user * @param integer the id of the bookmark to get * * @access public */ function PMA_deleteBookmarks($db, $cfgBookmark, $id) { $query = 'DELETE FROM ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table']) . ' WHERE user = \'' . PMA_sqlAddslashes($cfgBookmark['user']) . '\'' . ' AND id = ' . $id; if (isset($GLOBALS['dbh'])) { $result = mysql_query($query, $GLOBALS['dbh']); } else { $result = mysql_query($query); } } // end of the 'PMA_deleteBookmarks()' function /** * Bookmark Support */ $cfgBookmark = PMA_getBookmarksParam(); } // $__PMA_BOOKMARK_LIB__