Jump to content

[SOLVED] Yet another syntax error


BrianM

Recommended Posts

I can't seem to find where it's at... here is the the warning output:

Parse error: parse error, expecting `','' or `';'' in C:\Program Files\Apache Group\Apache2\htdocs\mps\projects\project_08-12345-1.php on line 43

 

and here is line 43:

 

echo "<td><span id="" class="editText"><center><b>" . $row['PermitProcess'] . "</b></center></span></td>";

Link to comment
https://forums.phpfreaks.com/topic/102885-solved-yet-another-syntax-error/
Share on other sites

Since you are using double quotes to encapsulate your string, you must escape your quotes within. Or, you could use single quotes:

 

Either this:

<?php
echo "<td><span id=\"\" class=\"editText\"><center>" . $row['PermitProcess'] . "</center></span></td>";
?>

 

Or this:

<?php
echo '<td><span id="" class="editText"><center>' . $row['PermitProcess'] . '</center></span></td>';
?>

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.