Hi,
you need to change your following code
echo '<td>'.'<img src="http://'.$image.'">'.
.'<a href="http://'.$image.'">View>'.
'</td>';
to

echo '<td>'.'<img...