如何将数据从MYSQL / PHP发送到Coldfusion组件? [英] How to send data from MYSQL/PHP to a Coldfusion component?

查看:82
本文介绍了如何将数据从MYSQL / PHP发送到Coldfusion组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建功能,以将PHP中的MYSQL查询生成的页面输出为PDF文件。

I'm trying to create functionality to output pages generated from MYSQL queries in PHP as PDF files.

为此,我需要一种包装这些数据的方法放置在动态表格中,并将其放置在标记之间,因此可以将其转换为干净的PDF。

To do this I need a way of wrapping up this data that is placed into dynamic tables and placing it between the tags, so it can be converted into a clean PDF.

我不确定从哪里开始,而不是从PHP页面调用Coldfusion组件,而不是按照我最初的设想。 / p>

I'm not sure where to start with this other than the coldfusion component will be called from the PHP page, rather than the other way round as I originally envisaged.

推荐答案

我将从这样的php脚本中提取动态内容:

I would pull the dynamic content from your php scripts like this:

<CFDOCUMENT format="pdf" src="url-to-php-script.php" mimetype="text/html" filename="#expandpath("your.pdf")#" />

这篇关于如何将数据从MYSQL / PHP发送到Coldfusion组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆