İşin kötüsü hata alamıyorum. Hatayı görüntüleyemiyorum daha doğrusu. Database connect te problem yok şifre 1 sorun nerde anlayamadım. Dosyaların tamamını vereyim isterseniz bir göz atın. İndex server.php 'yi gösteriyor. server.php içeriği :

<?php
require_once("config.php");
$jstree = new json_tree();

	echo $jstree->{$_REQUEST["operation"]}($_REQUEST);
	die();

 
?>
index.html içeriği:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Yalin Agac</title>
	
	<script type="text/javascript" src="../_lib/jquery.js"></script>
	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
	<script type="text/javascript" src="../jquery.jstree.js"></script>
	
	
</head>
<body >



<!-- the tree container (notice NOT an UL node) -->
<div id="demo" style="height:200px;"></div>

<!-- JavaScript neccessary for the tree -->
<script type="text/javascript" ><!-- class= "source below" yaparsan kodlar aşağıda görünür.-->
$(function () {

$("#demo")
	
	.jstree({ 
		// List of active plugins
		"plugins" : [ 
			"themes","json_data","ui" 
		],
		"json_data" : { 
			
			"ajax" : {
				// the URL to fetch the data
				"url" : "./server.php",
				
				"data" : function (n) { 
					// the result is fed to the AJAX request `data` option
					return { 
						"operation" : "get_children", 
						"id" : n.attr ? n.attr("id").replace("node_","") : 1 
					}; 
				}
			}
		},
		
		
		
		
	})



	

});
</script>





</body>
</html>
Sorguyu en sade haline getirmeye çalıştım.

$this->db->pg_query("SELECT * FROM tree WHERE _parent_id = ".(int) $id." ORDER BY _position ASC");
yapmak istediğim şey:

https://github.com/vakata/jstree/archive/v.pre1.0.zip

bunu postgresql e çevirmek. (Php ve Veritabanı kullanılan örneğini)