mysql_query
returnerer et ressource-id
, bør du hente en array :
$results = mysql_query("select * from classpics");
while($row = mysql_fetch_array($results)){
echo '<td valign="middle" align="center"><a class="neutral" href="../images.php?id=' . $row['id'] . '"><img src="'. $row['thumbs'].'" border="0" /></a>';
}