hello
i’m so sorry because my english is horrible
i have trouble when i was create my system (classification with decision tree in php programming)
i want to join some data values from my database(mysql) become string in php
this is my database
[table]
[tr]
[td]id[/td]
[td]id_rule[/td]
[td]attribute[/td]
[td]attribute_value[/td]
[td]decision[/td]
[/tr]
[tr]
[td]1[/td]
[td]4[/td]
[td]gill_size[/td]
[td]narrow[/td]
[td]edible[/td]
[/tr]
[tr]
[td]2[/td]
[td]4[/td]
[td]ring_type[/td]
[td]evanescent[/td]
[td]edible[/td]
[/tr]
[tr]
[td]3[/td]
[td]4[/td]
[td]cap_surface[/td]
[td]fibrous[/td]
[td]edible[/td]
[/tr]
[/table]
so i want to join the data values in attribute,attribute value and decision order by id rule
example : the data in 2nd row, 3rd row and 4th row have same id rule (id_rule = 4)
so i wanna create like this "if [gill_size = narrow] and [ring_type = evanescence] and [cap_surface=fibrous] then [edible]
so any word “if and then”
how to create like that?
please help me
and sorry for my horrible english language