flash用php连接数据库的代码
2023-06-13 09:14:27 时间
php代码:
复制代码代码如下:
/*/flashservices/services/Catalog.php*/
classCatalog{
var$products_array=array();
//Constructor:Containsthelistofmethodsavailabletothegateway
functionCatalog(){
$this->methodTable=array(
"getProducts"=>array(
"description"=>"Getlistofproducts",
"access"=>"remote",
"arguments"=>""//argumentscouldbeoptional,nottested
)
);//endmethodTable
}
functiongetProducts(){
//yourcodegoeshere
return$this->products_array;
}
}
actionscript代码:
#include"NetServices.as"
NetServices.setDefaultGatewayUrl("http://yourserver.com/flashservices/gateway.php");
gw=NetServices.createGatewayConnection();
CatalogREMOTE=gw.getService("Catalog",this);
CatalogREMOTE.getProducts();
getProducts_Result=function(result){
_root.products_results=result;
}
相关文章
- php案例之数据库选择列表
- PHP编程实现MySQL数据库连接(通过php连接mysql)
- 环境管理 Linux下如何实现多版本PHP环境管理(linux多php版本)
- 使用php支持mssql数据库(让php支持mssql)
- PHP pdo单例模式连接数据库详解编程语言
- PHP专业连接MySQL:实现快速代码.(php连接mysql数据库代码)
- 在Linux上快速搭建PHP开发环境(linux搭建php环境)
- LINUX下编写PHP程序的技巧(linux编写php)
- PHP使用mysql.so扩展连接MySQL数据库(phpmysql.so)
- PHP 5连接MSSQL:快速、方便、高效的数据库解决方案(php5mssql)
- 使用PHP在Linux系统中运行命令(php运行linux命令)
- 使用PHP连接MSSQL数据库的实例示范(php连接mssql例子)
- PHP连接MSSQL数据库发生错误解决方法(php mssql 错误)
- PHP连接MSSQL实现数据交互(mssql类php)
- 用微信、PHP和MySQL构建快速、可靠的网站(微信 php mysql)
- 利用PHP和MySQL建立连接的简单方式(php和mysql 连接)
- php数据库连接
- IIS下PHP连接数据库提示mysqlundefinedfunctionmysql_connect()
- php和数据库结合的一个简单的web实例代码分析(php初学者)
- php读取txt文件组成SQL并插入数据库的代码(原创自Zjmainstay)
- php连接mssql数据库的几种方法
- php实现可用于mysql,mssql,pg数据库操作类
- php连接oracle数据库及查询数据的方法