Hi... I could do with some help with PHP...
Basically Im building a template class which I have now finished.. its fairly simple though.
At the moment ive dne it so that i use tags like {TITLE} into the template and these work fine... however i need something more complex...
At the moment i define these tags with an array.. It is:
PHP Code:
$tags=array(
'TITLE'=>'This is my title',
'WELCOME'=>'This is my welcome message'
);
Now what I want to do is to be able to put in my template the tag {LISTUSERS}
This needs to then output a table which has got a list of all the users in a mysql database... kind of like a while statement.
How can I do this?
Thanks
__________________
Please login or register to view this content. Registration is FREE
- Affordable web site design solutions
|