Hi All,
I am trying to find a solution for a problem that I have. I am consulting a database and while there are records, it returns me 3 variables.
I thought at the end of this while loop to call a function to execute, and this function is specified (or, constructed) at 6 different parts on my script.
I explain:
At the while loop I have something like:
make_module($moduleid, $posv, $posh);
While the while (!) is executing, all three variables will change.
Okay. $posv (which stands for Position Vertical) can have these values (retrieved from the database):
Top
Center
Footer.
Then I have my template. I want to put on my template, at the Top part, something that will construct the make_module function only if the $posv has the "Top" value.
And I want, also, the footer part of my template to have something that will perform make_modules on that template part only if $posv is "Footer".
Abstractely (sorry if this word doens´t exists, english is not my primary language), I want to have $moduleid value´s only at the correct portion of my template.
Thanks for any help! If you did not understand my poor english or my problem explanation, I will try to make it better next time.
Julio Nobrega.