Data Grid in PHP(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 中的数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP 中的数据网格
基础教程推荐
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何替换eregi() 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
