How can i echo the last record php mysql : <p>For a project a need the echo the last 4 database records. I have a script that show all the records but I need only the last 4. Can someone help me?</p>

<pre><code>&lt;?php
$con = mysql_connect("localhost","test","test");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("test", $con);

$result = mysql_query("SELECT * FROM formulier");

echo "&lt;table border='1'&gt;
&lt;tr&gt;
&lt;th&gt;tafel&lt;/th&gt;

&lt;/tr&gt;";

while($row = mysql_fetch_array($result))
  {
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;" . $row['tafel'] . "&lt;/td&gt;";

  echo "&lt;/tr&gt;";
  }
echo "&lt;/table&gt;";

mysql_close($con);
?&gt;
</code></pre>

<p>Thanks!</p>
