Answer the question
In order to leave comments, you need to log in
Loading multiple datasets into one table?
So, I continue the series of lamer questions :)
Introductory:
1) There is some table (table) in html
2) There are several data sets - the fields are identical, just different contents of these fields in different data sets.
Question (request):
Give, pliz, a tip on an example (I want to see how it is implemented) of the implementation of this - I want this or that data set to be loaded into the table by clicking somewhere on the page.
Related questions:
1) How best to store these data sets for later loading into a table?
2) Well, how to actually load this data into an existing table with any action?
P.S. I apologize in advance for the confusion.
Answer the question
In order to leave comments, you need to log in
When clicked, I would do jquery ajax (google) which would load a ready-made table into a specific div.
Why? Because the number of fields/rows is static today and not tomorrow. And you have to rewrite all the logic.
It is better to store data where it is convenient for you. I would store in MySQL if available or in serialized arrays in files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question