You can't make a SQL call via a template... templates have to be text (the header & footer are a different story, they can optionally be php)
SQL calls require some sort of executed code. So your options would be to either use the header as PHP, which is explained in the user guide, then put the code in there to update a variable, which you could then post in a template...
or just hack the php code.
The first one is doable, but is messy. I would say the second option is better.
As far as the actual calls you will need, I dont know them. I have just started setting mine up, and havent learned the dbase structure yet... anyone else care to help with that?
|