Could you help mi in connecting these two things (sql + trees)
$res = mysql_query("select ID,title,parentID,url from table_category") or die(mysql_error());
while($inf = mysql_fetch_array($res)){
$tree->addToArray($inf["ID"],
$inf["title"],
$inf["parentID"],
$inf["url"],
"_blank");
}
How should database look like(tables ect.), and where to point which DB I should use
Thanks