Velocd
08-15-2002, 05:29 PM
I have a quick question about functions.
Say you call a function in index.php, called getsubforums(), that exists within functions.php. This function (which might need variables passed to it) will call queries within itself to get the subforums of each forum generated in index.php, when called. Now, if I did this without the function and hardcode it all into index.php, would that generate the same amount of queries to contrast if I did it within functions.php? Or would the queries called in functions.php not be visible (like in vbmicrostats) for index.php?
I'll be amazed if anybody can understand what I just asked...;)
But it's worth a try..
I'm asking it for this hack also, which generates tons of queries although the hack is very useful:
https://vborg.vbsupport.ru/showthread.php?s=&postid=285545#post285545
Say you call a function in index.php, called getsubforums(), that exists within functions.php. This function (which might need variables passed to it) will call queries within itself to get the subforums of each forum generated in index.php, when called. Now, if I did this without the function and hardcode it all into index.php, would that generate the same amount of queries to contrast if I did it within functions.php? Or would the queries called in functions.php not be visible (like in vbmicrostats) for index.php?
I'll be amazed if anybody can understand what I just asked...;)
But it's worth a try..
I'm asking it for this hack also, which generates tons of queries although the hack is very useful:
https://vborg.vbsupport.ru/showthread.php?s=&postid=285545#post285545