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?

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.
Similar Threads
  1. Deepak
    Replies:
    2
    Views:
    2,848
    Rolf Magnus
    Nov 24, 2004
  2. krishlal925
    Replies:
    2
    Views:
    7,659
    joris
    Apr 1, 2011
  3. Slain Wilde
    Replies:
    1
    Views:
    357
    Gerald Murray
    Aug 9, 2006
  4. Raju Gautam
    Replies:
    1
    Views:
    418
    Robert Klemme
    Oct 29, 2006
  5. Comfort Eagle

    unexpected kEND, expecting $

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