Flex3 and PHP connect to the mysql database

Source: Internet
Author: User
1. configure the PHP environment 2. start FlexBuilder3 and NewFlexProject, name the Project PHP, select php in the server type, set webroot (local web directory) and rooturl (http address ), then, select Data-CreateApplicationfromdatabase. In the dialog box that appears, set Project to PHP point New

1. configure the PHP environment 2. start Flex Builder 3, New Flex Project, name the Project PHP, select php in the server type, set the web root (local web directory) and root url (http address ), select Data-Create Application from database. In the dialog box, set Project to "New",

1. Configure the PHP Environment

2. Start Flex Builder

3. New Flex Project: Name the Project PHP, select php in the server type, set the web root (local web directory) and root url (http address ), select Data-> Create Application from database. In the dialog box, set the Project to "New", configure the connection Name, and click Next to configure the Host URL, Database Name, User Name, password: select the table name and primary key in "choose data source ".

4 flex 3 will automatically create a. mxml file with the same name as the table

5. It will be finished after running. You don't need to write a line of code. It's easy.

Effect: http://www.sohudo.com/flex/test.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.