```html
<div id="container"></div>
<script>
$(function() {
$('#container').jstree({
'core' : {
'data' : {
"url" : "//www.jstree.com/fiddle/?lazy",
"data" : function (node) {
return { "id" : node.id };
}
}
}
});
});
</script>
www.jstree.com/fiddle/?lazy which, I presume, is a php file with an SQL Select statement in it that looks for children of the opening node and reformats the results in JSON format?? But I cannot find the source for it. Does anyone have that or can you provide similar?
Thanks
/*
// create instance protocol://user:pass@host/db?charset=UTF8&persist=TRUE&timezone=Europe/Sofia
$db = DB::get('mysqli://ro...@127.0.0.1/test');
$db = DB::get('oracle://root:pass@VIRT/?charset=AL32UTF8');
// execute a non-resulting query (returns boolean true)
$db->query('UPDATE table SET value = 1 WHERE id = ?', array(1));
// get all results as array
$db->all('SELECT * FROM table WHERE id = ?', array(1), "array_key", bool_skip_key, "assoc"/"num");
// get one result
$db->one('SELECT * FROM table WHERE id = ?', array(1), "assoc"/"num");
// get a traversable object to pass to foreach, or use count(), or use direct access: [INDEX]
$db->get('SELECT * FROM table WHERE id = ?', array(1), "assoc"/"num")[1];
*/
Hi AgainSorry, I found this:
/*
// create instance protocol://user:pass@host/db?charset=UTF8&persist=TRUE&timezone=Europe/Sofia
$db = DB::get('mysqli://root@127.0.0.1/test');