Hello:

I'm running a script and I received the following error message:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr50/home/summitwe/public_html/replytopost.php on line 249

Parse error: parse error in /usr50/home/summitwe/public_html/replytopost.php on line 249

I checked over my syntax and I can't seem to find the problem.

Here is the bit of code that the error is flagging:

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber3\">
<tr>
<td width=\"76%\" bgcolor=\"#800000\" align=\"right\" valign=\"top\" height=\"17\">
<span class=\"lowbar\"><a href=\"index.html\">Home</a>

<font color=\"#FFFFFF\">|</font> <a href=\"about-us.htm\">About Us</a>

<font color=\"#FFFFFF\">|</font> <a href=\"portfolio.htm\">Portfolio</a>
<font color=\"#FFFFFF\">|</font> <a href="\contact-us.htm\">Contact</a>

<font color=\"#FFFFFF\">|</font> <a href=\"site-map.htm\">Site Map</a>

<font color=\"#FFFFFF\">|</font> <a href=\"resources.htm\">Resources</a>
<font color=\"#FFFFFF\"></font> <font color=\"#FFFFFF\">|</font>

<a href=\"privacy-policy.htm\">Privacy Policy</a></span>
<font color=\"#FFFFFF\"> </font></td>
</tr>
</table>
</td>
</tr><tr bgcolor=\"#FFCC66\">
<td bgcolor=\"#0065A0\" height=\"24\" style=\"border-style:double; border-width:1;\" width=\"729\">
<p align=\"left\"><font color=\"#FFFFFF\" size=\"2\" face=\"Verdana\">

Can someone lend a second pair of eyes and help me out?

Thank you in advance.

    <font color=\"#FFFFFF\">|</font> <a href="\contact-us.htm\">Contact</a>

    should be

    <font color=\"#FFFFFF\">|</font> <a href=\"contact-us.htm\">Contact</a>

      Hello:

      Thank you for your reply. I can't believe I missed that. I scanned through the code over and over.

      It all works now.

      Thanks again.πŸ™‚

        You might want to look at PHP's heredoc syntax for strings. It can be a right pain keeping track of all your \s when you have that manyπŸ™‚.

          using [man]highlight_string[/man] also help with such missing \'s etc, as the highlight will be done in color other than what you expect πŸ˜‰

            Write a Reply...