Jump to content

HTMLentities executed and shouldn't be


unemployment

Recommended Posts

Hmmm ... my crystal ball has gone dark & I can't see your code. :-)

 

Please post it between


tags so we can see what you're talking about.

 

Ken

 

Does this help?

while (($row = mysql_fetch_assoc($query)) !== false)
{

	$display_name = ucwords("${row['firstname']} ${row['lastname']}");

	if (file_exists("/assets/img/avatars/users/${row['username']}.png"))
	{
		$avi =  "<img src=\"/assets/img/avatars/users/${row['username']}.png\" title=\"${display_name}\" alt=\"${display_name}'s profile image\" />";
	}
	else
	{
		$avi =  "<img style=\"float:left;\" src=\"/assets/img/avatars/companies/defaultcomp.jpg\" title=\"${display_name}\" alt=\"${display_name}'s profile image\" />";
	}

	$account_type = ($row['accounttype'] == '1')? 'Entreprenuer' : 'Investor';
	$total = partner_fetch_total($uid);
	$partners[] = "${avi} ${display_name } ${account_type} ${total}";
}

Link to comment
Share on other sites

When you view the source of the page after is has excuted, what do you see?

 

Paste it here.

 

My feeling is that this part ${row['username']} should infact be this {$row['username']}...same goes for the rest of the variables that are typed the way...but what do I know?

 

Regards, PaulRyan.

Link to comment
Share on other sites

When you view the source of the page after is has excuted, what do you see?

 

Paste it here.

 

My feeling is that this part ${row['username']} should infact be this {$row['username']}...same goes for the rest of the variables that are typed the way...but what do I know?

 

Regards, PaulRyan.

 

This is my output and moving the $ in the {} didn't help.

 

<img style="float:left;" src="/assets/img/avatars/companies/defaultcomp.jpg" title="blah" alt="blahs's profile image" /> Blah Blah Investor 1

Link to comment
Share on other sites

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.