title: How do I create a monolithic (display individual items) from my data base? php
body: <p>I have created a page which displays news articles. For styling purposes and to add consistency to the page, I have cut the text to a certain number of characters. I would now like to display the data connected to each specific piece of data on a separate page. How would I do this?</p>
  
  <pre><code> function custom_echo($x, $length)
   {
     if(strlen($x)&lt;=$length)
     {
       echo $x;
     }
     else
     {
       $y=substr($x,0,$length) . ' ...Read More';
       echo $y;
     }
   }
  
   $query = $handler-&gt;query('SELECT * FROM articles');
   $results = $query-&gt;fetchAll(PDO::FETCH_ASSOC);
  
   for ($i=0; $i &lt; count($results); $i++) { 
     echo '&lt;div class="col-md-4 col-xs-12 col-sm-12 height-news"&gt;';
     echo '&lt;p class="news-title"&gt;'.$results[$i]['headline'].'&lt;br&gt;'.'&lt;/p&gt;';
  
     echo '&lt;img class="news-img" src="data:image/png;base64,'.base64_encode( $results[$i     ]['logo'] ).'"/&gt;';
     echo '&lt;p class="news-time"&gt;'.$results[$i]['date'].'&lt;br&gt;'.'&lt;/p&gt;';
     echo ('&lt;p class="news-body"&gt;');
     custom_echo ($results[$i]['text'], 360);  
     echo '&lt;br&gt;'.'&lt;/p&gt;'.'&lt;/div&gt;';
   }
  </code></pre>