問題描述
剛開始使用 Flex 進(jìn)行開發(fā),我喜歡它.
Just got developing with Flex, and i like it.
我做了一些簡(jiǎn)單的應(yīng)用程序來了解它,不涉及更新文件或數(shù)據(jù)庫.
I've done some simple apps to get the felling of it, nothing involving updating a file or a database.
我需要幫助,如何從 Flex 應(yīng)用程序(將在 Web 服務(wù)器中運(yùn)行)查詢 MySql DB.
I wanted help, how to do a query to a MySql DB from a Flex application (thats gonna be running in a web server).
我沒有看到任何重復(fù)的問題,抱歉,如果有,請(qǐng)指出.
I didn't saw any duplicated questions, sorry if any exists, just point me to it.
使用 PHP 在服務(wù)器上進(jìn)行查詢.
Using PHP to do the query on the server.
推薦答案
雖然我自己從未這樣做過,但我已經(jīng)閱讀并觀看了有關(guān)它的教程.可以在此處找到該教程,特別是標(biāo)記為使用 XML 將 Flex 與 PHP 集成"的教程位于頁面底部.
While I've never done this myself I have read and watched tutorials about it. The tutorial can be found here and the one in particular is labeled "Integrating Flex with PHP using XML" and is at the bottom of the page.
http://www.adobe.com/devnet/flex/videotraining/一個(gè)>
它基本上概述了如何使用 Flex 的 HTTPService 與 PHP 腳本交互.此 PHP 腳本可用于使用 GET 和 POST 變量在 Flash 應(yīng)用程序和 mysql 數(shù)據(jù)庫之間直接通信.
It basically outlines how to use Flex's HTTPService to interact with a PHP script. This PHP script can be used to communicate directly between your flash application and your mysql database using GET and POST vars.
這篇關(guān)于如何使用 Flex 更新 MySql 數(shù)據(jù)庫的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!