The top pic is upside-down; the bottom pic is good.

The obverse or "front" of the coin is the top pic; it is this side that contains the date and mintmark. Fortunately, it's nice and readable on this coin: the mint-city is "Medinat es-Salam", City of Peace, the flowery title given to Baghdad as the 'Abbasid capital city. The year is 189 Islamic Era, which converts to AD 805. This is towards the end of the reign of Caliph Harun al-Rashid.
Don't say "infinitely" when you mean "very"; otherwise, you'll have no word left when you want to talk about something really infinite. - C. S. Lewis