getting info from and presenting my array content
My client sells machine parts, each type having a different set of specifications.
I wish to display the item specs for each item on the item detail page
I have set my sql select statement to load all of the fields from the spec table, (the table queried depends on the item type).
This returns all of the specs for the product I need, returning a single row.
As each spec table has a different number of fields, I thought the best approach would be to store the recordset row in an array, with the field names as the keys, and the data as values.
This means I can have one page for my item detail, regardless of the item type.
So far so good.
I can do a print_r on the array and see my data, what I cannot do is loop through the array and show the values in a tabular form