echo "<table border='1'>";
echo "<tr><th>a</th> <th>a</th> </tr>";
while($row = mysql_fetch_array( $result )) {
echo "<tr><td>";
echo '<a href="http://www.com"><img src="http://www.com"></a>';
echo "</td><td>";
echo $row['xaxa_xa'];
echo "</td></tr>";