How do i correct syntax error?

I get this message on my web page: Parse error:syntax error, unexpected_STRINGheader_tags.p… on line 16?

  • Parse error: syntax error, unexpected T_STRING in /home/nzxtxx/public_html/includes/langua… on line 16. Here is the code starting from line 12: // The HEAD_TITLE_TAG_ALL is included BEFORE the specific one for the page DV// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page // The HEAD_KEY_TAG_ALL is included BEFORE the specific one for the page define('HEAD_TITLE_TAG_ALL', STORE_NAME); define('HEAD_DESC_TAG_ALL','What\'s New Here? - Hardware, Software, DVD Movies, Computer'); (This is line 16) define('HEAD_KEY_TAG_ALL','Hardware, Software, DVD Movies, Computer');

  • Answer:

    Syntax Error-- means your code has an error somewhere(most like something is misspelled)

roselyn at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Even though Yahoo cut off part of that line with the infamous ellipses, I believe you have an apostrophe in that line. I am guessing you are using the words "what's"? Notice the apostrophe in the text? You have to make sure you escape your characters like apostrophes, quotation marks and others. Because you use a single apostrophe in that line the parser is screwing up. Single quotes are used for enclosing strings so if you are going to use them in a string, they have to be escaped. I am sure that will solve your problem. Good luck to you!

Martyr2

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.