How to make collapsible columns for a table?

How would you make something in php which would increase the number of columns in a table depending on the number of comments made by users Also need a comment system?

  • Answer:

    if you want to change the columns in a mysql table use the ALTER TABLE command. however i would suggest that you are not building your database correctly, you should have two tables in this case, one for the user and one for the comments, that way you don't have to change the structure of your table every time someone makes a comment.

wiki.answers.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.