title: How to style PHP echo output with span
body: <p>I'm trying to style the output of each echo.</p>
  
  <p>Ideally I'd like to use <code>&lt;span class=""&gt; &lt;/span&gt;</code> for each echo, but I'm not too sure how to achieve this.</p>
  
  <pre><code>$result = mysql_query("SELECT * FROM Blog");
  while($row = mysql_fetch_array($result))
  {
      echo $row['Date'];
      echo $row['Title'];
      echo $row['Message'];
      echo "&lt;img src='".$row['Image']."'/&gt;";
  }
  
  mysql_close($con);
  </code></pre>