PHP cannot pull data from the database using Bootstrap

Asked

Viewed 36 times

-1

I have a form in PHP where presents the data of the logged in user. Follow code:

Precisa de troco?<br>
<input name="troco" type="text" id="troco" value=" Nenhum" size="60"><br><br>

Nome:<br>
<input id="nome" name="nome" type="text" size="60" value="<? echo $nome ?>"><br><br>

Endereço:<br>
<input id="endereco" name="endereco" type="text" size="60" value="<? echo $endereco ?>"><br><br>

CEP:<br>
<input id="cep" name="cep" type="text" size="60" value="<? echo $cep ?>"><br><br>

Bairro:<br>
<input id="bairro" name="bairro" type="text" size="60" value="<? echo $bairro ?>"><br><br>

Telefone(s):<br>
<input id="telefone" name="telefone" type="text" size="60" value="<? echo $telefone ?>"><br><br>

Email:<br>
<input id="email" name="email" type="text" size="60" value="<? echo $email ?>"><br><br>

After I put Bootstrap to give it responsive, it stopped returning the data, now always presents the value 1 in the fields. I’ve already taken the test, except, changing the div that makes the responsiveness:

<div class="container-fluid"> </div>

When I take it, the form works, presenting the data correctly.

1 answer

0

first you should improve the openings of php tags, the correct is:

<?php echo $bairro; ?>

bootstrap does not have the "power" to spoil anything in PHP, because PHP is backend and the bootstrap is frontend

Browser other questions tagged

You are not signed in. Login or sign up in order to post.