mysql_numrows($risultato) ---> mysql_num_rows($risultato)

Codice PHP:
echo "<img src=\"open.php?id=".$tmp['id']."\">\n"