title: How to limit the display of content from a database?
body: <p>I am using the following code to display the title and body content of articles from a database. How can I make only the first 200 characters from the article's body appear as opposed to all the characters?</p>
  
  <pre><code>&lt;?php
  
          $select = mysql_query("SELECT * FROM articles ORDER BY id DESC");
          while ($result = mysql_fetch_assoc($select))
      {
          $id     = $result['id'];
          $title  = $result['title'];
          $body   = $result['body'];
  
          echo "&lt;h2&gt;&lt;a name='$id'&gt;" . $title . "&lt;/a&gt;&lt;/h2&gt;";
          echo $body . "&lt;br /&gt;";
      }
  
  ?&gt;
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>