title: PHP new line \n and \r\n not working
body: <pre><code>  $rows = mysql_num_rows($result) ;
    for ($j=0 ; $j &lt; 3 ; $j++) {
    for ($i=0 ; $i &lt; 3 ; $i++) {
      $row = mysql_fetch_array($result) ;
      echo '&lt;a href="image2.php?id='.$row['ID'].'"&gt;'."&lt;img src='".$row['Image']."' /&gt;".'&lt;/a&gt;' ;
  
    }
     echo "\r\n";
    }
  </code></pre>
  
  <p>The code displays three groups of three images. My understanding was that \r\n and \n (double quotes) should create a new line. However it is just inserting a space between the images. Is the way am callign \r\n wrong or is it am using the wrong code to isneert a new line (line break)</p>
  
  <p>Examples (# = one image):</p>
  
  <p>Without echo \r\n: #########
  With echo \r\n: ### ### ###</p>