Jump to content

[SOLVED] Wordwrap Image inside PHP will not work


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**

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.