How to solve character problems in php require?

0

Look at the image:

MysystemhasthosebasicfunctionbuttonsofaCRUDwhichareincludedinthatpartofthetablebya<?phprequire("funcoes.php"); ?> .

However, doing require is showing ("") as seen by the Element inspector, and consequently, a spacing is appearing that causes the contents of the included to be shifted downward, such as in a line break.

Can you tell me why, when calling this require , these quotes automatically move the contents down?

Included file code:

<?php require ('sessao.php'); ?>

<div class="btn-group">
    <button class="btn btn-small btn-success tip editar" data-original-title="Ver e editar" name="editar" id="editar" value="<?=$fetch['id']; ?>">
    <span class="icon-refresh icon-white"></span></button>
    <button class="btn btn-small btn-warning tip" data-original-title="Arquivar" name="arquivar" id="arquivar" value="<?=$fetch['id']; ?>">
    <span class="icon-folder-open icon-white"></span></button>
    <button class="btn btn-small btn-danger tip" data-original-title="Excluir" name="excluir" id="excluir" value="<?=$fetch['id']; ?>">
    <span class="icon-trash icon-white"></span></button>
</div>
<input type="hidden" name="identidade" value="<?=$fetch['id']; ?>" />
<input type="hidden" name="municipios" value="<?=$fetch['cod_cidades']; ?>" />
    
asked by anonymous 29.07.2014 / 17:49

2 answers

0

I encountered problems just related to characters entering before the require. In Dreamweaver there is a BOM that inserts these characters automatically when you save the file, so you need to disable it.

Problem solved.

    
02.08.2014 / 14:06
1

A CSS error may also be occurring ...

These blank lines do not influence much to cause the next element to be pushed down. If possible post the code snippet where <?php require("funcoes.php"); ?> is to improve understanding of the problem that is occurring with your code.

    
29.07.2014 / 18:39