I have this <divs> that cannot read the end </divs> and when i erase the php that is in between them it works perfect..
heres the php
(when i say read i mean when u click in div in notepad++ they both <div></div> highlight , is just i dont know how u guys say it... )
i mainly speak spanish so sorry for my bad english
<?php
if (file_exists($rand1.$rand2.$imgname)) {
echo '<img id=imagen src="'.$rand1.$rand2.$imgname .'" >';
echo '<br><div class="fb-like" data-href="http://example.com/fotos/foto'
.$random1.$random2.$fotonamesinextension.'.php" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>';
echo '<br><br>';
echo '<div style="margin-top:70px;" class="fb-comments"
data-href="http://example.com/fotos/foto' .$random1.$random2.$fotonamesinextension.'.php"
data-numposts=5 data-colorscheme=light></div>';
}
else {
echo '<div id="cargaexitosa">';
echo '<font color=green>Carga exitosa, verificaremos la imagen y pronto estara en linea! Gracias por compartir con nosotros! :)</font>';
echo '</div>';
}
?>
</div> <!-- this div cannot be readed -->
</div> <!-- neither this one -->
</body>
</html>
Any ideas? Thanks!