PHP Classes

NestedSet in action

Recommend this page to a friend!

      Nested set  >  All threads  >  NestedSet in action  >  (Un) Subscribe thread alerts  
Subject:NestedSet in action
Summary:I want to connect to my database but I don't know how
Author:panagiota mitsopoulou
Date:2012-04-17 21:30:08

  1. NestedSet in action   Reply   Report abuse  
Picture of panagiota mitsopoulou panagiota mitsopoulou - 2012-04-17 21:30:08

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:

$c=new NestedSet($mysqli);

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.