Jump to content

[SOLVED] Wordwrap Image inside PHP will not work


daveoffy

Recommended Posts

I have the following code

if (mysql_num_rows($result1) < 1){
echo '<a href="member-profile.php?member_id='.$friend.'"><img src="uploads/users/default.png" width="100px" align="left" border="0"></a>'.$friend_name.' '.$friend_lname.'<br>Remove Friend<div class="friendsbox"></div>';
}else{
echo '<a href="member-profile.php?member_id='.$friend.'"><img src="uploads/users/'.$p_id.'" width="100px" align="left" border="0"></a>'.$friend_name.' '.$friend_lname.'<br>Remove Friend<div class="friendsbox"></div>';}
unset($friend);
}

 

and it works great but one thing. In the image we have align="left and in a normal HTML document it wraps the word around the image. In the echo it does not. How can I get word wrap working in an echo statement?

**OLD**It prints out everything in the source code right, it just wont work. I am so confused right now. I don't have any styles getting in the way of this. Any other ideas?**OLD**

 

**EDIT**I fixed it, it was my stupid CSS I forgot I added something. Thanks for all your help**EDIT**

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.