Hi everybody.
Im trying to make a form with multiply inputs, and subinputs to the inputs. So far i've accomplished to make the dynamics in making the form. See temp. Test example...
My Structure for subgrouping is like this
I then have some hidden fields to hold the amount of list items in each Ol. not important... And some id's on ol
My problem is when I want to make a list of the already saved inventory.
Heres a look at how some inventory is stored in mysql db.
Id SubId ParentId Supposed List Item
47 1 47 li_1_1
48 1 48 li_1_2
49 1 49 li_1_3
50 2 47 li_11_1
51 2 47 li_11_2
52 3 51 li_112_1
53 3 51 li_112_2
54 3 50 li_111_1
I can't figure out how to sort them, or extraxt the data and make a list as shown above, from this way of saving the substructure.. I'll try to find someway to make the list, but for now I can't see a good dynamic way to do it.
Im using standard php 4 and mysql
Any help would be great.
Dennis
Machine code Rocks![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Im trying to make a form with multiply inputs, and subinputs to the inputs. So far i've accomplished to make the dynamics in making the form. See temp. Test example...
My Structure for subgrouping is like this
Code:
ol
li_1_1 First List item
ol
li_11_1 Sub of first, and first in its ol
ol
li_111_1 Sub of first, first, and first in its ol
/ol
li_11_2 Sub of first, second
ol
li_112_1 sub of second li in the first sub
li_112_2 sub of second li in the first sub
/ol
/ol
li_1_2 Second list item
li_1_3 Third list item
/ol
My problem is when I want to make a list of the already saved inventory.
Heres a look at how some inventory is stored in mysql db.
Id SubId ParentId Supposed List Item
47 1 47 li_1_1
48 1 48 li_1_2
49 1 49 li_1_3
50 2 47 li_11_1
51 2 47 li_11_2
52 3 51 li_112_1
53 3 51 li_112_2
54 3 50 li_111_1
I can't figure out how to sort them, or extraxt the data and make a list as shown above, from this way of saving the substructure.. I'll try to find someway to make the list, but for now I can't see a good dynamic way to do it.
Im using standard php 4 and mysql
Any help would be great.
Dennis
Machine code Rocks