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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Deepak
    Replies:
    2
    Views:
    2,587
    Rolf Magnus
    Nov 24, 2004
  2. krishlal925
    Replies:
    2
    Views:
    7,420
    joris
    Apr 1, 2011
  3. Slain Wilde
    Replies:
    1
    Views:
    323
    Gerald Murray
    Aug 9, 2006
  4. Raju Gautam
    Replies:
    1
    Views:
    380
    Robert Klemme
    Oct 29, 2006
  5. Comfort Eagle

    unexpected kEND, expecting $

    Comfort Eagle, Nov 23, 2006, in forum: Ruby
    Replies:
    2
    Views:
    267
    Jan Svitok
    Nov 23, 2006
  6. thufir
    Replies:
    2
    Views:
    841
    thufir
    Apr 21, 2008
  7. Alec Williams
    Replies:
    2
    Views:
    596
    Stefano Crocco
    Jul 19, 2009
  8. Louise Rains
    Replies:
    4
    Views:
    767
    Louise Rains
    Aug 11, 2010
Loading...