Ampicillin syrup is indicated for the treatment of bacterial infections; it is contraindicated in patients with a known allergy to penicillins, may cause side effects such as diarrhea, rash, and allergic reactions, and may interact with medications like probenecid and certain anticoagulants.