My code (from a template) is saying: Parse error: syntax error, unexpected T_STRING,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cody DeWert
    New Member
    • Jan 2013
    • 3

    My code (from a template) is saying: Parse error: syntax error, unexpected T_STRING,

    My code (from a template) is saying: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

    When i open the .php in dreamweaver, it confirms the error. the code is:

    Code:
    <?php
    							  if ($menu->getActive() == $menu->getDefault())  {
    							  echo "More Cosmetics Store VirtueMart Templates at <a rel="nofollow" href="http://www.templatemonster.com/category/cosmetics-store-virtuemart-templates/" target="_blank">TemplateMonster.com</a>";
    							  }
    ?>

    Any help would be AWESOME!!!!
    Last edited by acoder; Jan 6 '13, 03:43 PM. Reason: Please use [code] tags when posting code
  • Anas Mosaad
    New Member
    • Jan 2013
    • 185

    #2
    Replace double quotes with single quotes in the string or escape the double quotes. For example, use:
    Code:
    echo "More Cosmetics Store VirtueMart Templates at <a rel='nofollow' href='http://www.templatemonster.com/category/cosmetics-store-virtuemart-templates/' target='_blank'>TemplateMonster.com</a>";

    Comment

    • Cody DeWert
      New Member
      • Jan 2013
      • 3

      #3
      Thank you so much!!!!!!!!!!!

      Comment

      Working...