It sounds like the antibiotic is killing off your natural flora. This will give you stomach aches and loose stool (as your natural bacteria, which help digest food, is gone). Have some yogurt or kefir to help reestablish. Eat some every day that you're on antibiotics, and for a little while after.