Flash . mysql / php

Hey everyone, Its been a while since ive been here but im back.

So i have a site setup with members, and i have a system that shows you who looked at your profile with an image and a link, now im looking into taking this, and putting it all in a flash file to be displayed, and updated automatically, how would I do this?

My database is setup using php / mysql