Php+as = full dynamic site. but how

Hi all, i’m making my own portfolio full dynamic flash site. And animation and interface is ok. But i don’t know about connecting to database. And i read about PHP+AS. And i couldn’t get a good point.

help me about connecting flash to database.

And sorry about my english skill. that is so bad!!! you can skip about my english skill.

Thanks all.