BrianM Posted April 25, 2008 Share Posted April 25, 2008 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 More sharing options...
kenrbnsn Posted April 25, 2008 Share Posted April 25, 2008 You can not have unescaped double quotes within a double quoted string. Use single quotes: <?php echo '<td><span id="" class="editText"><center>' . $row['PermitProcess'] . "</center></span></td>"; ?> Ken Link to comment https://forums.phpfreaks.com/topic/102885-solved-yet-another-syntax-error/#findComment-527005 Share on other sites More sharing options...
obsidian Posted April 25, 2008 Share Posted April 25, 2008 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>'; ?> Link to comment https://forums.phpfreaks.com/topic/102885-solved-yet-another-syntax-error/#findComment-527006 Share on other sites More sharing options...
BrianM Posted April 25, 2008 Author Share Posted April 25, 2008 Thank you very much, both of you! Link to comment https://forums.phpfreaks.com/topic/102885-solved-yet-another-syntax-error/#findComment-527144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.