hi guys...
i have two static value and between 8 and 16 other dynamic variables...which returns from sql queries everything.. like page titles, subjects etc...
everything based on number in tables,
Statics: Language and Index
Dynamic values: Categories from 1 to 6
SubCategories from 1 to 10
system works like this
if language = 1 n index = 1
{
if category = 1
{
if subcategory = 1
{
// code here
}
else if .......
{
// code here
}
else
{
// code here
}
}
}
if i do this in this way like repeating if circles, it ll take around 2000 rows... which means 50kb my question is how i can simplify this code as much as possible??
Thanks in advance