如何使用 PHP 和 Mysql 创建动态报告

发布于 2024-09-24 13:56:54 字数 104 浏览 0 评论 0原文

我用 PHP 设计了一个 Web 应用程序,它连接到 MySQL 中的数据库,该应用程序将根据用户从不同表中选择的字段生成报告,有一种方法可以做到这一点,即通过代码偏好。 (也可以使用软件工具)

I'm designed a web application in PHP which conects to a database in MySQL, this application will generate reports according to the fields that a user choose from diferents tables, there is a way to do this, preference by code. (and software tool is acceptable too)

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

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

发布评论

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

评论(2

孤千羽 2024-10-01 13:56:54

我使用 Zend 框架。在控制器中我正在创建一个表单。表单值发送到模型。模型函数返回插入的 id 或错误。在控制器中,我正在检查这个结果并回显它。它不仅适用于 Zend。

I work with Zend Framework. In controller I am creating a form. Form values sending to model. Model function returns inserted id or an error. In controller I am checking this result and echoing it. It works not only in Zend.

旧伤慢歌 2024-10-01 13:56:54

我不知道你到底需要什么,但如果你想获取表单值,请使用js。如果你想使用js使用jquery...你可以通过名称或id使用jquery获取选定的值...只需看看jquery

示例:

$("#input_id").val()

并使用它来生成报告...
添加 onclick 或 onchange 以动态显示报告

如果您想在提交后进行报告..我认为这很简单...

I don't know what exactly you need but if you want get form value use js. If you want use js use jquery ... you can get selected value with jquery by name or id ... just have a look on jquery

example:

$("#input_id").val()

and use it to generate your report...
add onclick or onchange to show report dinamically

If you want make it after submit.. I think it is quiet easy...

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