Home  >  Article  >  php教程  >  Flex 3 和PHP连接mysql数据库

Flex 3 和PHP连接mysql数据库

WBOY
WBOYOriginal
2016-06-06 19:59:481218browse

1.配置PHP环境 2.启动Flex Builder 3,New Flex Project,为Project命名为PHP,再在服务器类型中选择php , 设置的web root(本机web目录)和root url(http地址) , 然后选择Data-Create Application from database 在对话框中选择Project为PHP 点 "New",配

1.配置PHP环境

2.启动Flex Builder

3,New Flex Project,为Project命名为PHP,再在服务器类型中选择php , 设置的web root(本机web目录)和root url(http地址) , 然后选择Data->Create Application from database  在对话框中选择Project为PHP   点 "New",配置连接名称,然后点Next,配置好Host URL, Database Name, User Name, Password 在返回“choose data source” 选择好表名和主键

4 flex 3会自动创建一个与表同名的.mxml文件

5 运行之后,就完成了,不用写一行代码,很简单吧。

效果:http://www.sohudo.com/flex/test.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn