AMFPHP 将数据传递到 Flash 之前如何处理 mysql_result 数据

发布于 2024-07-16 10:51:46 字数 336 浏览 4 评论 0原文

AMFPHP 将数据传递到 Flash 之前,如何迭代 MySql 结果?

当 Flash 调用服务时,以下代码获取数据

$sql = sprintf("SELECT file_type, file_name ..
$result = mysql_query($sql);
return $result;

然后我假设 AMFPHP 处理此结果资源。

对于检索到的每个文件名,我需要运行一个函数来创建新的文件名并将新的更新数据传递到 Flash - 新文件名过期,因此我需要在运行时执行此操作,而不是更改数据库中的文件名。

How can I iterate through a MySql result before AMFPHP passes the data to Flash?

When Flash calls the service the following code gets the data

$sql = sprintf("SELECT file_type, file_name ..
$result = mysql_query($sql);
return $result;

Then I assume AMFPHP processes this result resource.

For each file_name retrieved I need to run a function to create a new file_name and pass the new updated data to Flash - the new filename expires so I need to do this at run time rather than changing the filenames in the database.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

脸赞 2024-07-23 10:51:46

您如何向 AMFPHP 提供数据? 为什么在发送结果之前需要迭代结果? 我问这个是因为也许您可以在执行查询时进行处理。

How are you providing your data to AMFPHP? Why do you need to iterate through the result before sending it? I'm asking this because maybe you could do your processing while executing your query.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文