Jump to content

Recommended Posts

Posted

Cred că bănuiești ce vreau să fac.

Îmi dă eroare când dau save ,deci undeva nu se leaga codurile.

<php>
$icon = '';
switch ({$forum_data['name']}){
   case 'Zona administrativă':
      $icon = '<i class="fa fa-home"></i>';
      break;
   default:
      $icon = '';
      break;
}
</php>

 

  • Moderators
Posted (edited)
<php>
$icon = '';
switch ($forum_data['name']){
   case 'Zona administrativă':
      $icon = '<i class="fa fa-home"></i>';
      break;
   default:
      $icon = '';
      break;
}
</php>

Vezi asa, fara acolade la

$forum_data['name']
Edited by Courage
  • Upvote 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.