redirect gives wrong list of results
<p>When the number of results is one greater than the total loss is entered correctly, but one is subtracted from the list. For example: Found 12 results but only 11 are listed:</p>

<pre><code>    $goto = mysql_fetch_array($query);
$results = mysql_num_rows($query); 
if($results == 1){    
    header('Location: movie.php?id='.$goto['id']);}

echo '&lt;p&gt;&lt;h2&gt;Results for search "'.$_GET["search"].'": &lt;/h2&gt;&lt;/p&gt;';
echo '&lt;hr /&gt;';
echo "Found ".$total." result(s).&lt;/p&gt;&lt;br&gt;";

echo '&lt;ol class="list"&gt;';


while ($resultado = mysql_fetch_assoc($query)) {
$titulo = $resultado['title'];  

echo '&lt;li&gt;';
$link = 'http://localhost/lab/movie.php?id=' . $resultado['id'];
</code></pre>

<p>Thank you in advance for your help.</p>
