Php echo a href to get both url and target from a database
<p>So far I have;</p>

<pre><code>echo '&lt;a href="' . $nav['link'] . '"&gt;';
</code></pre>

<p>The link is pulled from the database, I also want the target to be pulled from the database, how do I go about doing that?</p>

<p>The reason being is I have a text box on the article submitter that's value is "_blank" when ticked, in the database "target" has a default value of "_self". I want it so when I post an article, I can choose weather it will be opened in a new window or not. All of the information is stored in MySQL.</p>

<p>Sorry if that seems confusing, I've been at it all day, very fried.</p>
