panagiota mitsopoulou - 2012-04-17 21:30:08
Hello,
since last week I have been studying about nested sets and I found your class. I think it will be very helpful for me, but I don't know how to use it, as I am not good at OOP.
I created an index.php file and I put the following code:
include("nestedset.class.php");
$c=new NestedSet($mysqli);
$c->createRootNode('test');
How can I connect to my database? I put $mysqli = new mysqli("localhost", "root", "", "tree"), before including the class, but with no success.
So, I need your help.