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}";
}

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.

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

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.