blackracoon
06-21-2012, 03:18 PM
Ok so a small issue, I've read up all about creating custom pages within vbulletin 4, however a small issue remains.
What I want to do:
Read from a database a bunch of values and generate a table from it.
The issue:
I know how to pass static data in $vars over to the template to display but, there has to be a better way right to display my generated table. I'm doing a mysql_fetch and adding the whole <tr> string to another string for each value. so I then add <table> the actual content of my table and then the </table> string together, register it, pass it to the template and try to display it. As you can imagine it seems to be causing quite a few issues, where the table gets skewed e.t.c Is there a better way to be doing this? If so how?
Best Regards
What I want to do:
Read from a database a bunch of values and generate a table from it.
The issue:
I know how to pass static data in $vars over to the template to display but, there has to be a better way right to display my generated table. I'm doing a mysql_fetch and adding the whole <tr> string to another string for each value. so I then add <table> the actual content of my table and then the </table> string together, register it, pass it to the template and try to display it. As you can imagine it seems to be causing quite a few issues, where the table gets skewed e.t.c Is there a better way to be doing this? If so how?
Best Regards