title: How can i display new updated four images?
body: <p>My php code is -</p>
  
  <pre><code>&lt;?php
  $dbhost = 'localhost';
  $dbuser = 'root';
  $dbpass = '';
  $dbname = 'moviefone';
  $con = mysql_connect($dbhost, $dbuser, $dbpass);
  mysql_select_db($dbname, $con);    // Check connection
  if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  $data = mysql_query("SELECT * FROM new_hindi") or die(mysql_error());
  $info=NULL;
  while ($row = mysql_fetch_array($data))
    {
    $info=$row;    
    }
  ?&gt;
  </code></pre>
  
  <p>and the html is </p>
  
  <pre><code>&lt;div id="main_column"&gt;    &lt;div class="column-1"&gt;
  &lt;div class="sub-column1"&gt;
  &lt;a href="#" class="new_movies"&gt;&lt;span&gt;New&lt;/span&gt;&lt;/a&gt;
    &lt;a href="#"&gt;&lt;img src="&lt;?php echo $info["images"];?&gt;" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;&lt;?php echo $info["title"];?&gt;&lt;/a&gt;
    &lt;a href="#" class="new_english"&gt;&lt;span&gt;New&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="sub-column1"&gt; 
    &lt;a href="#"&gt; &lt;img src="#" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;nothing&lt;/a&gt;
    &lt;a href="#" class="theater"&gt;&lt;span&gt;In THEATERS&lt;/span&gt;&lt;/a&gt; 
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt;
     &lt;a href="#"&gt;&lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example8&lt;/a&gt;
     &lt;a href="#" class="upcoming"&gt;&lt;span&gt;Upcoming&lt;/span&gt;&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt; 
     &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200"  class="new-img"/&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example12&lt;/a&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  &lt;div class="column-2"&gt;
  &lt;div class="sub-column1"&gt;
    &lt;a href="#"&gt;&lt;img src="&lt;?php echo $info["images"];?&gt;" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;&lt;?php echo $info["title"];?&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="sub-column1"&gt; 
    &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;Example5&lt;/a&gt; 
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt;
     &lt;a href="#"&gt;&lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example9&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt; 
     &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200"  class="new-img"/&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example13&lt;/a&gt;
      &lt;/div&gt; 
  &lt;/div&gt;
  &lt;div class="column-3"&gt;
  &lt;div class="sub-column1"&gt;
    &lt;a href="#"&gt;&lt;img src="&lt;?php echo $info["images"];?&gt;" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;&lt;?php echo $info["title"];?&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="sub-column1"&gt; 
    &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt; 
    &lt;a href="#" class="img_titles"&gt;Example6&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt;
     &lt;a href="#"&gt;&lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example10&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt; 
     &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200"  class="new-img"/&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example14&lt;/a&gt;
      &lt;/div&gt; 
  &lt;/div&gt;
  &lt;div class="column-4"&gt;
  &lt;div class="sub-column1"&gt;
    &lt;a href="#"&gt;&lt;img src="&lt;?php echo $info["images"];?&gt;" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;&lt;?php echo $info["title"];?&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="sub-column1"&gt; 
    &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
    &lt;a href="#" class="img_titles"&gt;Example7&lt;/a&gt; 
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt;
     &lt;a href="#"&gt;&lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200" class="new-img" /&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example11&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="sub-column1"&gt; 
     &lt;a href="#"&gt; &lt;img src="images/packshot._UX140_CR0,0,140,200_V1349717863_Lovefilmgb169343_.jpg" width="140" height="200"  class="new-img"/&gt;&lt;/a&gt;
     &lt;a href="#" class="img_titles"&gt;Example15&lt;/a&gt;
      &lt;/div&gt; 
  &lt;/div&gt;
  &lt;/div&gt;&lt;!--main cloumn--&gt;
  </code></pre>
  
  <p>only one newly updated image is fetching.but i want four newly updated updated images to be fetched and displayed on the page.i can't achieve this.every row is fetching the same image . how to loop the latest entry of database?</p>