Jump to content

Wierd echo error?


zero_ZX

Recommended Posts

Hi, i got the most wierd php error ever and i don't know why..

        echo "<td><strong>MP:</strong></td>";
echo "<td>";
echo "".$char['mn']."";
        echo "</td>"
echo "<td><strong>Armor:</strong></td>";
echo "<td>";
echo "".$char['armor']."";

 

Now i get this error:

Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in C:\I***\characters.php on line 241

Line 241 says:

echo "<td><strong>Armor:</strong></td>";

What is wrong with this one? :/ Thanks for sharing your wisdom :o

Link to comment
https://forums.phpfreaks.com/topic/183768-wierd-echo-error/
Share on other sites

The line that says - echo "</td>" does not end with a semi-colon. The following should run just fine.

 

        echo "<td><strong>MP:</strong></td>";
   echo "<td>";
   echo "".$char['mn']."";
        echo "</td>";
   echo "<td><strong>Armor:</strong></td>";
   echo "<td>";
   echo "".$char['armor']."";

 

Link to comment
https://forums.phpfreaks.com/topic/183768-wierd-echo-error/#findComment-969971
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.