Here is how you create an instance, bind an event and then get the instance.
Here is a PHP & mySQL enabled demo. You can use the classes/DB structure included, but those are not thoroughly tested and not officially a part of jstree. In the log window you can also see all function calls as they happen on the instance.
If the follow demo not work,pls do follow describe step by step:
1) Create a database and a user with all privileges for this database.
2) Edit the config.php file and update the configuration for the database at the top of the file
3) Import the _dump.sql in your newly created database
4) You are ready to go
*) PLEASE NOTE THAT THE PHP TREE CLASS HAS NOT BEEN THOROUGHLY TESTED