TODO :
Well, can you please tell me how you want it working ?
- SQL strings stored in list ? or SQL research on the fly ?
Well, anyway...
Look at your model, it prepares the datas for the view.
All you have to do is :
- send (or read) the SQL custom to the model, instead of the classic query.
- get the columns names of the query result
- return both structure and datas
In your view.html.php
- Init the model
- Call that special function and get structure and datas
- send the datas the the template (already there)
- send the structure in the same way.
In your template :
- Enumerate the columns and construct the grid on the fly
- Enumerate your datas, and switch JDom calls depending of the field type (structure of the column)
Good luck to code your custom PhpMyAdmin
Can I ask you a copy of your future app ?
I am serious, it can be really usefull for debugging, and why not integrated in Cook (as an option) ?