Toozyne Toozyne - 7 months ago 20
PHP Question

Echoing HTML To create elements

For some reason this wont work, i think i have it right because i did read up about this:

echo '<li class="dropdown">';
echo '<a class="dropdown-toggle" data-close-others="false" data-delay="0" data-hover="dropdown" data-toggle="dropdown" href="#">';
echo '<img src="<?=$steamprofile['avatar']?>" height="30" style="border-radius: 100%;">';
echo '</a>';
echo '</li>';


What is my error? i mean i dont really see what is wrong with it i have done it before and it worked?

Answer

Try this one.

echo '<li class="dropdown">';
echo '<a class="dropdown-toggle" data-close-others="false" data-delay="0" data-hover="dropdown" data-toggle="dropdown" href="#">';
echo '<img src="'.$steamprofile['avatar'].'" height="30" style="border-radius: 100%;">';
echo '</a>';
echo '</li>';
Comments