When confused, your Pokemon has a 25% chance of successfully pulling off a move, 25% chance of snapping out of confusion, and a 50% chance of hitting yourself in confusion every turn.
Oh...so that means that when you get the "Pokemon is confused" message after you select an attack, the odds are against you.