$curvalue) { $counter++; if ($sqldata) $sqldata.=" OR "; $sqldata .= "tid=\"".db_slashes($curtopic)."\""; } if ($sqldata) { $sql = "DELETE FROM ".$GLOBALS['DBprefix']."Bookmark WHERE uid=".$GLOBALS['inuserid']." AND ($sqldata)"; $res = db_query($sql,$link); } message(MSG_bmk_deleted." ".$counter); } function locations($locations) { global $action; if ($action=="view") array_push($locations,MSG_bmk_list); return $locations; }