If the comments all have the same structure, why store them in different tables? Create a comments table and link that to each of the other four tables somehow. (I suspect you need a linking table to make the one-to-many relationship work, but that's pretty standard.)
Then all you need to do is use a templating system that allows you to use fragments or components and define a comment component and reuse that in your other templates.
In reply to Re: Pseudo-Polymorphism
by chromatic
in thread Pseudo-Polymorphism
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |