Php MySQL project need some help

Hello everyone! I am a newb to MySQL and php but i do have programming exp and i understand the basics. Here is my problem. I am making a web site for my friend, he has a baseball league and he wants me to set up the site so the managers of each team can log in and update the roster and there w/l stats.

I have already created 2 db’s locally for the user and pw(1db) and a team db to hold all the team info such as team name roster standing etc etc.

Also in my teams db i have an id reference to the user db so each manager will b able to edit there teams. my problem is adding data to the db’s via php and then echoing it out.

Any ideas?
I have a feeling its simple

Thanks