Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']'

Discussion in 'PHP' started by seosamui, May 1, 2016.

  1. seosamui

    seosamui

    Joined:
    May 1, 2016
    Messages:
    1
    Likes Received:
    0
    Here is the code:

    It's making me blind. Can someone help me please? I see one single quote. But I don't know where to add the other one.

    <li class="<?php echo ($_SESSION[" m="" ]="=" 'home="" ?="" active="" :="" )="">"&gt; <a href="index.php">Home</a></li>
    <li class="<?php echo ($_SESSION[" m="" ]="=" 'bio="" ?="" current="" :="" )="">"&gt; <a href="bio.php">Bio</a> </li>
    <li class="<?php echo ($_SESSION[" m="" ]="=" 'appointment="" ?="" current="" :="" )="">"&gt; <a href="appointment.php">Appointment</a> </li>
    <li class="<?php echo ($_SESSION[" m="" ]="=" 'services="" ?="" current="" :="" )="">"&gt; <a href="services.php">Services</a> </li>
    <li class="<?php echo ($_SESSION[" m="" ]="=" 'gallery="" ?="" current="" :="" )="">"&gt; <a href="gallery.php">Gallery</a> </li>
    <li class="<?php echo ($_SESSION[" m="" ]="=" 'promotions="" ?="" current="" :="" )="">"&gt; <a href="promotions.php">Promotions</a> </li>
     
    seosamui, May 1, 2016
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.