I dont see The last call of ajax
<p>Im using ajax to print the dates from my database.</p>

<p>The problem is that i dont see the last tuple of my database.
So if there is only one tuple in my database , I do not see even this (Because is the last).</p>

<p><strong>Ajax</strong></p>

<pre><code>$(function update ()  {
      $.ajax({       
      type: "POST",
      url: '/includes/contenuto.php',                  //the script to call to get data  
      data:{action:"show"},   
      success: function(data)          //on recieve of reply
      { 
        $("#pinBoot").html(data);
      }


        }).then(function() {           // on completion, restart
       setTimeout(update, 5000);  // function refers to itself
    });
      });
</code></pre>

<p><strong>PHP</strong></p>

<pre><code>&lt;?php
include('../core.php');
$action=$_POST["action"];
if($action=="show"){
$sql = mysql_query("")  or die ("Nessun errore");

$array = mysql_fetch_row($sql); 
    while ($row = mysql_fetch_array($sql))
    {
        echo '
    &lt;article class="white-panel"&gt;
        &lt;h4&gt;&lt;a href="#"&gt;'.$row ['titolo'].'&lt;/a&gt;&lt;/h4&gt;
        &lt;p&gt;'.Markdown($row ['contenuto']).'&lt;/p&gt;
      &lt;/article&gt;
     ';
    }


}                   
?&gt;
</code></pre>

<p>Thanks all.</p>