本文介紹了PHP 中的數據網格的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我需要在使用 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 中的數據網格的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!