Sorting top three using mysql/php : <p>I want to get the three entities with highest value from my database, sort them and place them in each their div's just like a scoreboard with the top three. I will also be able to separate the fields (id, name, description etc.) and retrieve those by using for example:</p>

<pre><code>&lt;?php echo $sql['id']; ?&gt;
</code></pre>

<p>I already know the code to retrieve the info and sort it:</p>

<pre><code>$sql = ("SELECT * FROM table ORDER BY tablefield DESC LIMIT 3");
</code></pre>

<p>But I don't know how to place the three entities into each their div's and separate the entity's fields like name, description etc.</p>
