How to display and edit data from 2 tables in phpmydatagrid

I am using phpmydatagrid.class.php. Everything works fine, except that I cannot edit the data when I use data from two database tables. I learned from the document that if I set the column type to “linked” instead of an integer or text, then I can refer to the data of another table. But the document did not give further details. Document URL http://www.gurusistemas.com/documentation.php

+6
source share
2 answers

phpMyDataGrid is a PHP class for displaying and editing MySQL table database entries. (And not tables.) Editing can be done using AJAX. It can display the contents of records in an HTML table. The class can be configured to define field fields in a database table.

A class is able to store data from only one table at a time. (In the future, a class may provide functionality for multiple tables.) Thus, it is currently not possible to display and edit data from 2 tables in phpmydatagrid.

See this discussion .

+2
source

You can edit multiple tables with phpMyDataGrid at once if you are creating an editable join view of these tables. then you just implement the view just like a table.

0
source

Source: https://habr.com/ru/post/897775/


All Articles