February 16th, 2013, 03:42 AM
Check if tree branch has data
I have a menu tree in a mysql database which I can display easily by a recursive php function
INSERT INTO `car_nav` (`rowid`,`parent`,`name`) VALUES
INSERT INTO `car_data` (`navid`,`details`) VALUES
(5,'this car has...'),
(5,'a luxury model for...'),
(6,'another car for...'),
Is there a way in PHP to show only the branches who end in an entry from the car_data DB and leave out those who are blind?
In above example all branches that origin from VW would be hidden, as there are no models assigned.
Last edited by benwenger; February 16th, 2013 at 03:47 AM.