本文介绍了PHP 中的数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我需要在使用 php 作为后端编程语言的 Web 应用程序中创建一个数据网格,该数据网格将从 MySQL 数据库对象(视图、存储过程)填充.最终用户应该能够编辑此数据网格中的数据,并且需要更新 MySQL 表中的数据.
I need to create a datagrid in a web application using php as the backend programming language, which will be populated from a MySQL database objects (views, stored procedures). The end user should be able to edit the data in this datagrid and the data in MySQL tables will need to get updated.
如果你能给我一些例子 - 教程、演示、项目以及如何使用这些例子的解释,这将是一个很大的帮助.
If you can give me some examples -tutrial, demos, project with explanation on how to use those with examples, it will be a great help.
推荐答案
您可以使用 http://phpgrid.com
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
// change column titles
$dg->set_col_title("orderNumber", "Order No.");
$dg->set_col_title("orderDate", "Order Date");
$dg->set_col_title("shippedDate", "Shipped Date");
$dg->set_col_title("customerNumber", "Customer No.");
// hide a column
$dg -> set_col_hidden("requiredDate");
// change default caption
$dg -> set_caption("Orders List");
$dg -> display();
示例可以在 http://phpgrid.com/example/
它易于使用且外观漂亮.
it's easy to use and looks pretty.
这篇关于PHP 中的数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
The End



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)