From the details that you have provided, it appears that you are suffering from liver abscess. The medicines commonly prescribed for liver abscess are:-
Metronidazole - for amoebic liver abscess, which is given for 7 to 10 days. Other medicines used are tinidazole, Ornidazole, etc.
Antibiotics such as Ofloxacin or other oral or IV antibiotics - for Pyogenic liver abscess. The course is usually up to 2 weeks.
Your treating doctor has to first diagnose the cause of liver abscess & then give you the appropriate medications. Hope this clarifies your doubts.