A swf file cannot directly access the database because it runs on the client side (I'll assume you are not using remoting). The swf accesses a php script on the server that outputs something. There are two major methods, load vars and xml.
My guess is that the php script outputs data for flash's load vars. In that case the quotes need to be urlencoded not htmlencoded. Try $caption = url_encode($caption) Regards, John Campbell _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php