I have a syntax error in my PHP script? <p>I am working on a project were I need to turn text in a table cell into a dynamic link and I am getting an error when escaping to HTML.</p> <p>Here are the line of code I am trying to turn into a link. It works perfect before I try to make it a link.</p> <pre><code>echo "&lt;td&gt;&lt;a&gt;" . (isset($resultSetArray[$x]["assessment"]["owner1"]) ? ucwords(strtolower($resultSetArray[$x]["assessment"]["owner1"])) : '') . "&lt;/a&gt;&lt;/td&gt;"; </code></pre> <p>It returns a name from the database. I need this name to be a link to another page, with the name in the URL.</p> <p>Here is what I tried without success. Where am I going wrong?</p> <pre><code>echo "&lt;td&gt;" . "&lt;a href=\"http://Company.com/secure/IndSearch?owner=" (isset($resultSetArray[$x]["assessment"]["owner1"]) ? ucwords(strtolower($resultSetArray[$x]["assessment"]["owner1"])) : '')"/" (isset($resultSetArray[$x]["assessment"]["owner1"]) ? ucwords(strtolower($resultSetArray[$x]["assessment"]["owner1"])) : '') . "&lt;/a&gt;&lt;/td&gt;"; </code></pre>