¿ªÊ¼ÖÆ×÷£¨×öºÃÉÏÃæµÄ×¼±¸¹¤×÷£¬ÏÂÃæµÄ»áºÜºÃÀí½â£©£º
1¡¢SWF¶ÁÈ¡Êý¾Ý
¢ÙºÍ¢ÚMySQl→PHP→SWF
PHPÓÓSELECT”´ÓMySQlÄÇÀïÈ¡£¬ÔÙд³Éxml¸øSWF¶Á¡£
2¡¢SWF´¢´æÊý¾Ý
¢ÛºÍ¢ÜSWF→PHP→MySQl
SWFÓÓsendAndLoad”¸øPHP£¬PHPÓÓINSERT”¸øMySQl¡£
Íê³ÉºóµÄ½Øͼ£º
ÆäËû×¢ÒâÊÂÏ
½â¾öÂÒÂ루½â¾öÊý¾Ý¿âÖеÄÖÐÎĶÁ³öÀ´ÊÇ"????"£©£º
ÔÚÓÃPhpAdmin½¨Á¢Êý¾Ý¿âµÄʱºòÑ¡Ôñ“utf8-geeral-ci”±àÂë¡£
ÔÚphpÎļþµÄ²éѯÓï¾äÇ°£¬¼ÓÉÏ£ºmysql_query("set names 'utf8'");
phpÄ£¿é»¯£¨±ãÓÚÒÔºóÐ޸ģ©£º
Á¬½ÓÊý¾Ý¿âµÄÓï¾äдÔÚµ¥¶ÀµÄÎļþÖУ¬Èçconnectdb.php¡£
ÔòдÊý¾Ý(datatosql.php)ºÍ¶ÁÊý¾Ý(datatoxml.php)µÄÎļþÖмÓÉÏ£ºrequire "connectdb.php"¼´¿É¡£
MySQLÅÅ´íº¯Êý(Èç²Ù×÷ÓÐ´í£¬¸ù¾ÝÌáʾ»áºÜ·½±ãÐÞ¸Ä)£º
mysql_errno(³ö´íºÅ);mysql_error(³ö´íÔÒò)¡£
phpµÄÈÕÆÚº¯Êý(¸üÏêϸµÄ¿É²Î¿¼ÆäËû°ïÖú)£º
data("Ymd,l,H:i"); //20080608,Sunday,09:28
SWFʵʱˢУ¨±£Ö¤¶ÁÈ¡×îÐÂÊý¾Ý£©£º
swf·¢ËͲ¢»ñȡʵʱ±äÁ¿£ºdata_lv.sendAndLoad("datatosql.php?n="+random(9999), data_lv, "post");
swf¶Áȡʵʱxml£ºmyXML.load("datatoxml.php?n="+random(9999));