By: Rob
Date: 2007-06-11
Time: 11:19
|
Variable info from file in template
Hello,
Maybe this is the biggest newbie question but I cannot solve it searching the manual and forum. Thanks for your help/suggestions.
I have a MySQL-table with fields like number_NL, number_UK, number_DE. Depending on the site people are responding from, I need to show the info from The Netherlands (NL), United Kingdom (UK), etc.
The info from which site they come is in a php-file with the variable $sc.
I want in my HTML the field [blk1.number_[var.sc]] in such a way that the [var.sc] is replaced by NL, UK or DE. Obviously this does not work, but what do I have to code?
Thanks a lot!
Rob
|