$query="SELECT * FROM files_folder WHERE `folder_id`='$id' LIMIT {$start},{$messages}"; $sql=mysql_query($query) or die(mysql_error()); pages_2($page,$pages); echo'<table>'; while($folder_w=mysql_fetch_assoc($sql)){ echo'<tr><td><img src="/images/folder/'.$folder_w[id].'.gif" alt="" /></td><td> <a href="/folder.php?id='.$folder_w[id].'">'.$folder_w[name].'</a></td></tr>'; } echo'</table>'; pages_2($page,$pages);