How to Connect the PHP MySQL App With the Flex App

The Adobe Flex development platform uses its own language, but you can include your PHP and MySQL pages in the Adobe Flex project using the "MX String" tag included in the Adobe Flex language. The tag calls the PHP and MySQL pages in your app, so you can integrate a PHP and Flex project into one Web page.

Instructions

    • 1

      Open the Adobe Flex software from the Windows program menu. Open the Flex app you want to incorporate with the PHP and MySQL app.

    • 2

      Add the PHP page that connects to the MySQL database. Use the following code to include the MySQL connection:

      <mx:String id="mysqlconnect">
      http://site.com/connect.php
      </mx:String>

      Replace the URL with the URL for your MySQL connection.

    • 3

      Add the PHP page for your dynamic page. The include tags for the PHP page connection is the same for the MySQL connection. Add the following code below to include the PHP file:

      <mx:String id="phpfile">
      http://site.com/file.php
      </mx:String>

      Replace the " http://site.com/file.php" URL with your own PHP file URL. If the PHP page relies on the MySQL database, you must ensure that this page is linked after the MySQL connection.

    • 4

      Click the "Save" file and click "Run" to review the code changes in the Flex browser and debugger.

Related Searches:

References

Comments

Related Ads

Featured