jeudi 1 novembre 2018

if statement inside of output

   $output10 .= '            <div class="panel panel-profile list-view">
          <div class="panel-heading">
            <div class="media">
              <div class="media-left">
                <a href="#">
                  <img class="media-object img-circle" src="../images/photos/user1.png" alt="">
                </a>
              </div>
              <div class="media-body">
                <h4 class="media-heading">'. $row['username'] . '</h4>
               'if($pAdminLevel == 0) : '<p class="media-usermeta"><i class="glyphicon glyphicon-briefcase"></i>' . $pAdminLevel . '</p>' endif; '
              </div>
            </div><!-- media -->

I want to make a if statement, but it shows this error. The code I posted is not the full version, that's why closing brackets are missing, I just posted what I don't understand, thank you.

syntax error, unexpected 'if' (T_IF) in

Aucun commentaire:

Enregistrer un commentaire