summaryrefslogtreecommitdiffstats
path: root/samples/tree/01_basic_connector.php
diff options
context:
space:
mode:
Diffstat (limited to 'samples/tree/01_basic_connector.php')
-rw-r--r--samples/tree/01_basic_connector.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/tree/01_basic_connector.php b/samples/tree/01_basic_connector.php
index 57af485..a8bcd2d 100644
--- a/samples/tree/01_basic_connector.php
+++ b/samples/tree/01_basic_connector.php
@@ -1,10 +1,10 @@
<?php
require_once("../config.php");
- $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
- mysql_select_db($mysql_db);
+ $res= new PDO($mysql_server,$mysql_user,$mysql_pass);
+
require("../../codebase/tree_connector.php");
- $tree = new TreeConnector($res);
+ $tree = new TreeConnector($res, "PDO");
//
$tree->render_table("tasks","taskId","taskName","","parentId");
?> \ No newline at end of file