title: Printing only 3 td for row in php
body: <p>I am trying to print the value from database. the database contains the image URL.
  I am retrieving the image url through php and printing it.</p>
  
  <p>I have written this code to do so.</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>&lt;?php
              if(! $conn )
              {
                  die('Could not connect: ' . mysql_error());
              }
                  $sql = 'SELECT name,thumbnail,link  FROM courses';
                  mysql_select_db($dbname);
                  $retval = mysql_query( $sql, $conn );
              if(! $retval )
              {
                  die('Could not get data: ' . mysql_error());
              }
              while($row = mysql_fetch_assoc($retval))
              {
                  echo "&lt;tr&gt;";
                  echo "&lt;td&gt;&lt;a href='".$row['link']."' title='Click to see schedule'&gt;&lt;img src='".$row['thumbnail']."'&gt;&lt;/a&gt;&lt;/td&gt;";
                  echo "&lt;/tr&gt;";
              }
              mysql_close($conn);
          ?&gt;
  </code></pre>
  
  <p>This code is retriving image <code>URL</code> and displaying images on table. But I want 3 images per row, now it is printing only 1 image per row.
  How can i do this?</p>