Hi!
I am generating TreeGrid XML from SQL (PHP).
My mySQL table “filetest” looks like this:
id, path, name, parentId, parentName
1, /Filename.txt, Filename.txt, 0,
2, /myFolder, myFolder, 0,
3, /xFilename.txt, xFilename.txt, 0,
4, /myFolder/mySubFolder, mySubFolder, 2, myFolder
5, /myFolder/subFilename.txt, subFilename.txt, 2, myFolder
6, /myFolder/mySubFolder2, mySubFolder2, 2, myFolder
7, /myFolder/mySubFolder/SubFolderPic.jpg, SubFolderPic.jpg, 4, mySubFolder
I am using the code bleow:
require("./connector/treegrid_connector.php");
$tree = new TreeGridConnector($res);
$tree->render_sql(“SELECT * from filestest”,“id”,“name”,"",“parentId”);
However.
- I wold like to show for folder rows and for file rows.
- Also, I would like to insert checkboxes <input type=“checkbox” name=“53” > on file rows.
How can this be done?
Thanks!