Dude, I thought you read the bible. Even I don't, and here are some my favourite verses:
Proverbs 13:24
He that spareth his rod hateth his son: but he that loveth him chasteneth him betimes.
Proverbs 22:15
Foolishness is bound in the heart of a child; but the rod of correction shall drive it far from him.
Proverbs 23:13
Withhold not correction from the child: for if thou beatest him with the rod, he shall not die.
(the author of Proverbs was mistaken - children can and have been beaten to death with rods)
Ecclesiasticus 22:6
Lecturing your children can sometimes be as out of place as singing to people in morning, but a whipping is a wise choice of discipline at any time.
Ecclesiasticus 30:11
Don't give him [your son] freedom while he is young, and don't overlook what he does wrong. Whip him while he is still a child, and make him respect your authority.
Exodus 21:15 (supposedly spoken by God to Moses)
And he that smiteth his father, or his mother, shall be surely put to death.
Exodus 21:17 (supposedly spoken by God to Moses)
And he that curseth his father, or his mother, shall surely be put to death.
Leviticus 20:9 (supposedly spoken by God to Moses)
For every one that curseth his father or his mother shall be surely put to death: he hath cursed his father or his mother; his blood shall be upon him.
Deuteronomy 21:18-21(supposedly spoken by God to Moses)
If a man have a stubborn and rebellious son, which will not obey the voice of his father, or the voice of his mother, and that, when they have chastened him, will not hearken unto them Then shall his father and his mother lay hold on him, and bring him out unto the elders of his city, and unto the gate of his place; And they shall say unto the elders of his city, This our son is stubborn and rebellious, he will not obey our voice; he is a glutton, and a drunkard. And all the men of his city shall stone him with stones, that he die: so shalt thou put evil away from among you; and all Israel shall hear, and fear.
Matthew 15:4-7 (Jesus himself speaking)
For God commanded, saying, Honour thy father and mother: and, He that curseth father or mother, let him die the death. But ye say, Whosoever shall say to his father or his mother, It is a gift, by whatsoever thou mightest be profited by me; And honour not his father or his mother, he shall be free. Thus have ye made the commandment of God of none effect by your tradition. Ye hypocrites, well did Esaias prophesy of you, saying, This people draweth nigh unto me with their mouth, and honoureth me with their lips; but their heart is far from me. But in vain they do worship me, teaching for doctrines the commandments of men.
This is getting too long. Take a gander at this.
http://www.religioustolerance.org/ofe_bibl.htm Oh, here's one of my favourites: Genesis 19: The men of Sodom gathered around Lot's house, and asked that he bring his two guests out so that the men can "know" them. This in frequently interpreted as a desire to gang rape the visitors, although other interpretations are possible. Lot offers his two virgin daughters to be raped instead. Yet, even after this despicable act, Lot is still regarded as an honorable man, worth saving from the destruction of the city. Allowing one's daughters to be sexually assaulted by multiple rapists appears to be treated as a minor transgression, because of the low status of the young women.
I like how my search on google for "bible beating children" came up with sites named "Godly Tips on How To Punish and Beat Your Christian Child" and "Beating Children Saves Lives"

Like I said, what you're following is your interpretation of the bible.