如何使用 PHP 和 Mysql 创建动态报告
我用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 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.
我不知道你到底需要什么,但如果你想获取表单值,请使用js。如果你想使用js使用jquery...你可以通过名称或id使用jquery获取选定的值...只需看看jquery
示例:
并使用它来生成报告...
添加 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:
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...