Ich hab's!
<?php if(substr($siteId, 0, 2) == '17') { echo "class='active'"; } else if(substr($siteId, 0, 2) != '17'){ echo "class='inactive'"; }?>
Merci für den gedankenanreiz.
Ich hab's!
<?php if(substr($siteId, 0, 2) == '17') { echo "class='active'"; } else if(substr($siteId, 0, 2) != '17'){ echo "class='inactive'"; }?>
Merci für den gedankenanreiz.