Código PHP:
<? $consul=mysql_query("select imagen,thumb from Fotos", $db)or die ("error en query:".mysql_error());
$result= mysql_fetch_array($consul);?>
<a href="<?echo $result['imagen']?>"><img src=" <? echo $result['thumb']?>"></a>
yo lo cambiaria por esto
Código PHP:
<? $consul=mysql_query("select imagen,thumb from Fotos", $db)or die ("error en query:".mysql_error());
$result= mysql_fetch_object($consul);?>
<a href="<?echo $result->imagen; ?>"><img src=" <? echo $result->thumb; ?>"></a>