Código PHP:
echo "<table><tr>";
while ($field = mysql_fetch_field($result)){
echo "<th>" . $field->name . "</th> \n";
}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td><span class=\"estilo2\">".$row["fecha de alta"]."</td> \n";
echo "<td><span class=\"estilo2\"><a href='busc.php?ID=".$row["id_animal"]."'>".$row["nombre animal"]."</td> \n";
echo "<td><span class=\"estilo\">".$row["provincia"]."</td> \n";
echo "<td><span class=\"estilo2\">".$row["raza"]."</td> \n";
echo "<td><span class=\"estilo\">".$row["familia"]."</td> \n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
}
Saludos.