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>"; Quote Link to comment 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 Quote Link to comment 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>'; ?> Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.