User | Post |
sloat
Posts: 83/85 |
you could make a string of code and save it to a var, then use the eval function to execute it. that's about as close as you will get. |
DarkSlaya
Posts: 4142/4249 |
I'M trying to make a loop (in the sense of "while" or "for")
I can't do it before calling the function, because the function is what makes the formated table to display data (well, it's made so the table changes style according to layout).
If I could, I would've made that loop before, trust me. |
Mega-Dog
Posts: 102/139 |
Originally posted by DarkSlaya I don't quite get what you're asking there
Sounds like he is tring to put it in a loop to instert rows. |
neotransotaku
Posts: 3924/4016 |
what do you mean by a loop? so you mean you want $content to represent a for or a while loop? so, will $content be the rows in the table? if so, why can't you do an mySQL query beforehand to get the rows that will be transformed into a table? |
DarkSlaya
Posts: 4140/4249 |
I don't quite get what you're asking there |
neotransotaku
Posts: 3921/4016 |
is there a reason why you can't do the query before you call mySQL? |
DarkSlaya
Posts: 4139/4249 |
What I want to do is make a plugin for a certain Portal system.
Now, I ran into a problem: I want to use the make table function, which look like this: mktable($title, $content)
However, I want $content to be a loop (Because I need to grab a few rows from mySQl to put it there).
Any way to do that? |