Pagination php from array
<p>I've been trying to pagginate my picture but very very unssucesfull i am hopping i can ghet some hints on how to do it. This is my code.</p>

<pre><code>&lt;?php                                           
   $result = mysql_query("SELECT * FROM images ORDER BY position");
   while ($image = mysql_fetch_array($result)){
?&gt;
&lt;img src="images/uploads/thumbs/&lt;?php echo $image['thumb'];?&gt;" width="100%" height="100%" alt="" class="thumbnail" /&gt;
&lt;input type='button' value='Preview' onclick="changedesc(&lt;?php echo $image['image_id']; ?&gt;); return false;" /&gt;
&lt;?php }?&gt;
</code></pre>
