HTML have a tag called Break 🙂 you should echo this :
echo "welcome ". $row["name"];
echo "<br />";
echo '<a href="https://stackoverflow.com/questions/36248812/tran.php?page=A"><img src="tran.png"/></a>';
solved How to modify HTML inside PHP by CSS [closed]