title: storing and rendering back php + html code into mysql problem
body: <p>I am creating my own website I want to store some of my php variable + Html code into mysql database and want to use it for display. like</p>
  
  <pre><code>&lt;a href="&lt;?php echo $default_url;?&gt;/link-to-page-1"&gt;page 1&lt;/a&gt;
  &lt;a href="&lt;?php echo $default_url;?&gt;/link-to-page-2"&gt;page 2&lt;/a&gt;
  </code></pre>
  
  <p>and simple storing it to mysql database</p>
  
  <p>///////////////////</p>
  
  <p>when displaying data first I fetch it using my own written PDO based select function (extra info)</p>
  
  <p>first line</p>
  
  <pre><code>&lt;?php $default_url="localhost/cms"; ?&gt;  // initializing $default _url variable
  </code></pre>
  
  <p>2ns line</p>
  
  <pre><code>$body = select_body(); // returns above stored 
  
  echo $body; 
  </code></pre>
  
  <p>in source code it shows like this</p>
  
  <pre><code>&lt;a href="&lt;?php echo $default_url;?&gt;/link-to-page-1"&gt;page 1&lt;/a&gt;
  &lt;a href="&lt;?php echo $default_url;?&gt;/link-to-page-2"&gt;page 2&lt;/a&gt;
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>&lt;a href="localhost/cms/link-to-page-1"&gt;page 1&lt;/a&gt;
  &lt;a href="localhost/cms/link-to-page-2"&gt;page 2&lt;/a&gt;
  </code></pre>