hi there, i want to display my data coming from database..i could do that using a table, however the problem is that the table will just expand everytime there is data. what i want to have is a control which has a scrollbar which will display lots of data.
i've heard of the datagrid in php, however, i cannot apply it., could you give me the simplest one? thanks..
I'm having a hard time understanding your previous question as it seems somewhat ambiguous. Adjustable by whom, the programmer or the user? What do you want to be adjustable? Using the above example, the height of the table cannot be adjusted beyond the scope height of the DIV's. So it is best that just the height of the DIV is adjusted, and the table will auto expand to fixed size.
For the programmer, this is no problem, just predefine to a suitable height.
For a user, there would probably need to be 2 links or so, one that when clicked, makes the height of the DIV taller and another to make shorter.
Example, these text links may be put above or below the table: