I have just created a Flash Sql Component kit that makes it easy to execute database queries from within Flash 5.
I am posting this here, because it includes support for PHP (with MySql and ODBC).
You may download the kit and find more information at:
http://www.markme.com/as/flashsql/
mike chambers
mesh@speakeasy.org