dynamic meta showing repeated tags in codeigniter
<p>I have created a php code for showing Meta tags on dynamic pages. The code is something like :</p>

<pre><code>&lt;?php  }?&gt;
&lt;?php if(isset($store_det)) {?&gt;
&lt;title&gt;"This is an example text"&lt;/title&gt;
&lt;meta name="keywords" content="This,is"&gt;
&lt;meta name="description" content="This is an example text"&gt;
&lt;?php } if(isset($popular_store)) {  ?&gt;  
&lt;title&gt;"This is an example text"&lt;/title&gt;
&lt;meta name="keywords" content="This,is"&gt;
&lt;meta name="description" content="This is an example text"&gt;
&lt;?php } if($this-&gt;uri-&gt;segment(2) == 'aboutus') {  ?&gt;  
&lt;title&gt;"This is an example text"&lt;/title&gt;
&lt;meta name="keywords" content="This,is"&gt;
&lt;meta name="description" content="This is an example text"&gt;
&lt;?php } else {  ?&gt;
&lt;title&gt;"This is an example text"&lt;/title&gt;
&lt;meta name="keywords" content="This,is"&gt;
&lt;meta name="description" content="This is an example text"&gt;
&lt;?php } ?&gt;
</code></pre>

<p>The issue is its showing meta twice on 2 variable i defined above $store and $popular_store.
But on the "else" url and uri->segment(2) == 'aboutus" mentioned above its showing perfect (only 1 meta)</p>

<p>Awaiting openion...</p>